|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
Adrian Smarty n00b
Joined: 07 Feb 2004 Posts: 2
|
Posted: Sat Feb 07, 2004 10:06 pm Post subject: A little help please... |
|
|
Hi people,
Ive been trying to use this templating engine on mysite and I have fallen into one small trap.
I am trying to do
$content = $smarty->display('index.tpl');
but it doesnt set the $content , all it does is just echo it, how can I make it also set the content variable with what its going to output?
Anyhelp will be much appreciated.
Thanks. |
|
Back to top |
|
Adrian Smarty n00b
Joined: 07 Feb 2004 Posts: 2
|
Posted: Sat Feb 07, 2004 10:18 pm Post subject: |
|
|
Ok, nevermind I worked it out, i needed to use fetch instead of display. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|