Re: Re[3]: [SMARTY] dyamic include file variable

From: Date: Thu, 09 Jan 2003 22:41:16 +0000
Subject: Re: Re[3]: [SMARTY] dyamic include file variable
References: 1 2 3 4  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-7104@lists.php.net to get a copy of this message
Quoting Rob Ellis <rob@web.ca>: > On Thu, Jan 09, 2003 at 01:38:01PM -0600, Monte Ohrt wrote: > > We do something kind of similar. Instead of rewrite rules, we have one > > rule in apache, the errordoc handler: > > > > ErrorDocument 404 /error_handler/index.php > > > > A similar thing is to set up an Apache 'handler' -- e.g. > > # all .html files handled by a smarty script > AddHandler smarty-handler .html > Action smarty-handler /scripts/shandler.php > > Then have the handler script look at PATH_INFO for what was > requested. So at the simplest level you could just treat > all html files as smarty templates, e.g., with a handler > like I use this method myself - each page is really just an XML file that is handed to a PHP handler which reads it and puts stuff into a Smarty template. Works quite nicely really. Just my 2c. P. ------------------------------------------------- This mail sent through IMP: http://horde.org/imp/

« previous php.smarty.general (#7104) next »