Re: [SMARTY] advanced {include}

From: Date: Fri, 07 Feb 2003 01:33:23 +0000
Subject: Re: [SMARTY] advanced {include}
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-7567@lists.php.net to get a copy of this message
Hi, Thanks for all the help. I will be using resource handlers, that is a great feature. I am thinking I should pull the templates out into files anyway, as I prefer to be able to edit them with an editor anyway. Greg "Paolo Nesti Poggi" <pnp@italyflash.com> wrote in message news:NFBBIMEDOLFHIIPILFPIMEKADAAA.pnp@italyflash.com... > Well, you can still use Smarty without loosing your DB templates. > > http://smarty.php.net/manual/en/plugins.resources.php > http://smarty.php.net/manual/en/templates.from.elsewhere.php > > you can define your own DB resource handler, and gain flexibility. > > Paolo > > > > -----Oprindelig meddelelse----- > > Fra: Greg Beaver [mailto:greg@chiaraquartet.net] > > Sendt: 6. februar 2003 19:49 > > Til: smarty-general@lists.php.net > > Emne: [SMARTY] advanced {include} > > > > > > Hi, > > > > For the schedule application at calendar.chiaraquartet.net, I > > need templates > > that have userlevel-aware include. Currently, all template data is stored > > ina mysql database, but I've decided to move that out to files so > > that I can > > take advantage of Smarty's compile abilities. > > > > I want to have {include} use a different include path for different > > userlevels. By this, I mean the {include} would first search in the > > userlevel include path, and if the template is not found, look in the > > default directory like this: > > > > {include file="my.tpl"} > > > > search for include_path/userlevel/my.tpl > > if not found > > search for include_path/default/my.tpl > > > > Is this already possible, or should I write my own extension for include? > > > > Thanks, > > Greg > > > > > > > > -- > > Smarty General Mailing List (http://smarty.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > >

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