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

text file

 
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 -> General
View previous topic :: View next topic  
Author Message
ermelir
Smarty n00b


Joined: 18 Jun 2003
Posts: 2

PostPosted: Wed Jun 18, 2003 2:39 pm    Post subject: text file Reply with quote

hello forum,

first I would apologize my poor english.
my question is :
- I use smarty to create template but I would know if there is a way to redirect output into text file?
I have browse documentation, but I haven't found something about it so I think that is impossible.
could you confirm it please?
thanks in advance for your help
Back to top
View user's profile Send private message
gianni
Smarty Rookie


Joined: 14 May 2003
Posts: 29
Location: Bari, Italy

PostPosted: Wed Jun 18, 2003 5:21 pm    Post subject: Reply with quote

You can use the method "fetch":

Code:
$output = $smarty->fetch("index.tpl");


and than write to a text file the content of $output.
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
ermelir
Smarty n00b


Joined: 18 Jun 2003
Posts: 2

PostPosted: Wed Jun 18, 2003 8:46 pm    Post subject: Reply with quote

thanks for your help
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 -> General 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