Re: [SMARTY] Storing templates in SQL
| From: | messju mohr | Date: | Sun, 09 Mar 2003 09:05:37 +0000 |
| Subject: | Re: [SMARTY] Storing templates in SQL | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-8495@lists.php.net to get a copy of this message | ||
On Sun, Mar 09, 2003 at 09:43:31PM +1300, Eaden McKee wrote:
> Hi there,
> I would like to store templates in mysql.
http://smarty.php.net/manual/en/templates.from.elsewhere.php
is your
starting point :)
> Or, more to the point, would
> like to be able to do something like
> $smarty->display($actual_template_code) i.e, be able to pass the actual
> template code to some smarty function and get it to compile and display it.
>
> The reason for wanting this, is user updatable templates, but on a large
> scale system, and file system saves is not desirable. I also wonder
> about timestamps and possably I can store these in mysql too.
>
> I would be grateful for any pointers on what fuctions I should look
> into. Looking at the code there is a lot of filesystem specific stuff, I
> hope what I want is reasonably achievable.
>
> Thanks in advance,
> Eaden McKee
>
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--
It is essential that implementations by different vendors interoperate.:
Unsere proprietären Basteleien dokumentieren wir gar nicht erst.
Sven Türpe