Question on componentized templates
| From: | Robert Hazeltine | Date: | Mon, 08 Jan 2007 00:24:07 +0000 |
| Subject: | Question on componentized templates | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-13663@lists.php.net to get a copy of this message | ||
Hi
I'm new to the use of Smarty templates so I hope someone can assist with my question. Is it possible to substitute a variable in in following example - ie symbol = $smarty. Is there some reason, I cannot do this but, if I can, how?
Example:
$smarty = "YAHOO";
{load_ticker symbol='SMARTY' assign='ticker'}
{load_ticker symbol='{$smarty}' assign = 'ticker'}
Alternatively is there another way you can suggest to use a template function to read the data in a similar manner.
Rob...
Robert Hazeltine Phone: +61(2) 9678-7621 Senior Analyst/Programmer Mobile: 0410311656 University of Western Sydney Email: r.hazeltine@uws.edu.au