SV: [SMARTY] advanced {include}

From: Date: Thu, 06 Feb 2003 22:56:50 +0000
Subject: SV: [SMARTY] advanced {include}
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-7566@lists.php.net to get a copy of this message
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 (#7566) next »