Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,472
There are 1881 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     PHP and MySQL :

PHP Widget

Thread title: PHP Widget
Closed Thread    
    Thread tools Search this thread Display Modes  
06-12-2008, 08:39 PM
#1
DUB is offline DUB
Status: I'm new around here
Join date: Jun 2008
Location: London, England
Expertise:
Software:
 
Posts: 8
iTrader: 0 / 0%
 

DUB is on a distinguished road

  Old  PHP Widget

Right well i want to be able to make basic PHP variables into short widgets for e.g.:

$myname = "Jack";

then if i want to display this i can put something like

{myname}

Does anyone have an idea how to do this?
Thanks

01-12-2009, 07:25 PM
#2
trench is offline trench
Status: I'm new around here
Join date: Nov 2008
Location:
Expertise:
Software:
 
Posts: 13
iTrader: 0 / 0%
 

trench is on a distinguished road

  Old

You could use echo "this is {$myname}"; or integrating the Smarty template library, which invokes TPL files.

Closed Thread    


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed