Re: [SMARTY] Re: Newsreader developed with Smarty
| From: | Luc Saint-Elie | Date: | Wed, 16 Jul 2003 16:37:29 +0000 |
| Subject: | Re: [SMARTY] Re: Newsreader developed with Smarty | ||
| References: | 1 2 3 4 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-9902@lists.php.net to get a copy of this message | ||
Hello Peter,
I don't like including php code in templates. I try to separate completely my code (classes) from my templates files, this makes things easier for me to maintain.
In fact I used PEAR:NET_NNTP that works pretty well for what I needed.
You can see the result at : http://blog.saint-elie.com (there are tow links on the right side under "Discussions").
Luc
At 15:55 16/07/2003 +0000, Peter Vereshagin wrote:
Sat, Jun 28, 2003 at 12:15:24PM +0200 Luc Saint-Elie To smarty-general@lists.php.net LSE> Why do I need Smarty ? because its for include in a Smarty based site, and that's nothing especial, I asked because I experienced overheads with phNNTP when number of messages was more than ~1000, like it is at php.general. So I revoked phNNTP on behalf of the stuff launched at http://news.php.net (I seem to call it PhpNewsWeb) and is available for download at the CVS2WWW gate somewhere at www.php.net as part of PHP itself. And. again, I seem your reason (inclusion in a Smarty-based site) is facultative (insignificant) since Smarty is able to execute any single php command with {php} instruction with all of the global variables and (seems) defined functions be visible since Smarty provides PHP code after compiling. I did that practice when I needed to include bar-style chart --- I simply included the code used HTMLGraphs class with its own output methods and I transmitted the variables into that "template-included" PHP file quite transparently. Anyway, your milage may vary (c) :)