For Programmers: Free Programming Magazines  


Home > Archive > PHP Smarty Templates > July 2004 > Re: [SMARTY] Put in file









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [SMARTY] Put in file
Messju Mohr

2004-07-08, 4:04 pm


Hi!

On Thu, Jul 08, 2004 at 09:08:39PM -0400, Juan Pablo Herrera wrote:
> Hi!
> I need put the content of $smarty->display(template.tpl), in a file .txt.
> The function that using in php is fwrite. Can I using this function?



you want to use $smarty->fetch() instead of $smarty->display(). see:
http://smarty.php.net/manual/en/api.fetch.php



> Thank You.
> Juan

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com