Using RDBMS for Smarty
| From: | Nimrod A. Abing | Date: | Tue, 18 Feb 2003 17:20:16 +0000 |
| Subject: | Using RDBMS for Smarty | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-7839@lists.php.net to get a copy of this message | ||
Hi, I was just wondering if there is a plugin/subclass/mod for smarty
that will allow for writing to and reading files from a RDBMS. I've read
in the manual about using different resource reading functions for the
templates themselves but I don't see anything that will allow you to
read a compiled template or a cached template from a RDBMS.
The main problem I've had with Smarty is the template_c directory. Most
sensible operators don't want to make anything writable to user apache
(or www or nobody). I've looked into the sources (2.4.2) and I think it
would be possible to modify it to allow for a more generic approach to
reading in the compiled and cache templates. The current implementation
just reads in a compiled template via an include(). I've thought of a
few ways to implement this but I just wanted to know if someone else has
already done it before. Maybe a Smarty subclass that reads and writes
the compiled templates from a database?
Best regards.
--
_nimrod_a_abing_
PGP Public Key here:
http://www.redberger.com/~abing/abing_at_redberger_dot_com.asc
Key expires at Thu Nov 6 11:01:34 2003 PHT