Templates in DB
| From: | Simon H | Date: | Sun, 02 Jun 2002 12:25:28 +0000 |
| Subject: | Templates in DB | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-4498@lists.php.net to get a copy of this message | ||
Hi All!!
I'm very new to Smarty, and am trying to retrieve both site content/block
contents and templates from a DB.
Starting with the template; I found info on this in the documentation at:
http://smarty.php.net/manual/en/plugins.resources.html
So I created the plugin accordingly. I haven't ran this yet, as I can't see how
it knows what database to connect to, or where the database settings are.
Is the method shown, for use with PEAR DB? If so, where do I put the PEAR
includes - within the Plugin? Regardless some further information describing
how to setup DB connectivity in Smarty for Template/content storage would be
most helpful, and much appreciated.
TIA
Simon H