|
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 |
ermelir Smarty n00b
Joined: 18 Jun 2003 Posts: 2
|
Posted: Wed Jun 18, 2003 2:39 pm Post subject: text file |
|
|
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 |
|
gianni Smarty Rookie
Joined: 14 May 2003 Posts: 29 Location: Bari, Italy
|
Posted: Wed Jun 18, 2003 5:21 pm Post subject: |
|
|
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 |
|
ermelir Smarty n00b
Joined: 18 Jun 2003 Posts: 2
|
Posted: Wed Jun 18, 2003 8:46 pm Post subject: |
|
|
thanks for your help |
|
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
|