Re: store templates files in SQL
| From: | Monte Ohrt | Date: | Wed, 17 Oct 2001 13:22:54 +0000 |
| Subject: | Re: store templates files in SQL | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-1711@lists.php.net to get a copy of this message | ||
Your db fetching function is required to pass a timestamp value to
Smarty. If you store your templates in a database, you must keep track
of a timestamp (like a date column), and update it when the template
gets updated.
Bob wrote:
>
> What would the advantage be in having the template in a database? How would you
> know if the template has been changed cuz there's no timestamp on a file, right?
>
> Bertrand DUNOGIER wrote:
>
> > Hello,
> >
> > Uh ho, ok. Didn't read the doc... RTFM me bitch :)
> >
> > Bertrand (aka Katana on EFNet :p)
> >
> > MO> You can use your own resource handler, documented in the manual.
> >
> > MO> Sheldon Jones - Admin wrote:
> > >>
> > >> Does anyone know how or have a function to store the template files in
> > >> an SQL database.
> > >>
> > >> I've looked at the smarty code an I believe this is the function that
> > >> would have to be changed.. _read_file($resource_name)..
> > >>
> > >> Thanks in advance.
> > >>
> > >> --
> > >> --Sheldon
> > >>
> > >> ------------------------------------------------------
> > >> Sheldon Jones
> > >> Systems Administrator
> > >> Lobo Internet Services, Ltd.
> > >>
> > >> mailto:sheldon@hobbydump.com
> > >>
> > >> Does Microsoft mean "small and limp"?
> > >> What's with the 'Intel Inside' warning label anyway?
> > >> ------------------------------------------------------
> > >>
> > >> ---
> > >> You are currently subscribed to smarty as: monte@ispi.net
> > >> To unsubscribe send a blank email to $subst('Email.Unsub')
> > >> Visit Smarty's homepage at
> > >> http://www.phpinsider.com/php/code/Smarty/
> >
> > MO> --
> > MO> Monte Ohrt <monte@ispi.net>
> > MO> http://www.ispi.net/
> >
> > MO> ---
> > MO> You are currently subscribed to smarty as: bdunogier@wanadoo.fr
> > MO> To unsubscribe send a blank email to $subst('Email.Unsub')
> > MO> Visit Smarty's homepage at
> > MO> http://www.phpinsider.com/php/code/Smarty/
> >
> > ---
> > You are currently subscribed to smarty as: whyisityou2@yahoo.com
> > To unsubscribe send a blank email to $subst('Email.Unsub')
> > Visit Smarty's homepage at
> > http://www.phpinsider.com/php/code/Smarty/
>
> _________________________________________________________
>
> Do You Yahoo!?
>
> Get your free @yahoo.com address at http://mail.yahoo.com
>
> ---
> You are currently subscribed to smarty as: monte@ispi.net
> To unsubscribe send a blank email to $subst('Email.Unsub')
> Visit Smarty's homepage at
> http://www.phpinsider.com/php/code/Smarty/
--
Monte Ohrt <monte@ispi.net>
http://www.ispi.net/