RE: [SMARTY] templates from database

From: Date: Mon, 06 Oct 2003 12:40:21 +0000
Subject: RE: [SMARTY] templates from database
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-10306@lists.php.net to get a copy of this message
You really *want* to do it on this way (it's not difficult!): you can write your own methods, but if you don't register those methods as template resources to the smarty template object, you won't be able to access/include your templates files within other template files with the {include...} syntax. (yeah you can write your own include plugin, but that would be over the edge ;)) I hope this helps, Peter -----Original Message----- From: pete M [mailto:pmorgan@ukds.net] Sent: maandag 6 oktober 2003 14:35 To: smarty-general@lists.php.net Subject: Re: [SMARTY] templates from database if there an easier way without writing a function eg $smarty->setTemplate(txt); Peter Billen wrote: > http://smarty.php.net/manual/en/templates.from.elsewhere.php > > Peter > > -----Original Message----- > From: pete M [mailto:pmorgan@ukds.net] > Sent: maandag 6 oktober 2003 13:48 > To: smarty-general@lists.php.net > Subject: [SMARTY] templates from database > > I want to source the templates from a database.. I've seen some article > or posting about it somewhere "out there" before but I can't find it. > > Can anyone help me please ? > > tia > > pete > -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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