Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.
How do I return the template content instead of display it?

 
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 -> FAQ (Frequently Asked Questions)
View previous topic :: View next topic  
Author Message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7292
Location: Lincoln Nebraska, USA

PostPosted: Tue Mar 08, 2005 9:47 pm    Post subject: How do I return the template content instead of display it? Reply with quote

Instead of:

[php:1:6bf1c00486]$smarty->display('index.tpl');[/php:1:6bf1c00486]

use:

[php:1:6bf1c00486]$output = $smarty->fetch('index.tpl');[/php:1:6bf1c00486]
Back to top
View user's profile Send private message Visit poster's website
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 -> FAQ (Frequently Asked Questions) All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can 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