Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

A little help please...

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Installation and Setup
View previous topic :: View next topic  
Author Message
Adrian
Smarty n00b


Joined: 07 Feb 2004
Posts: 2

PostPosted: Sat Feb 07, 2004 10:06 pm    Post subject: A little help please... Reply with quote

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
View user's profile Send private message
Adrian
Smarty n00b


Joined: 07 Feb 2004
Posts: 2

PostPosted: Sat Feb 07, 2004 10:18 pm    Post subject: Reply with quote

Ok, nevermind I worked it out, i needed to use fetch instead of display.
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Installation and Setup All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP