Re: [SMARTY] Smarty and Oracle (databases)

From: Date: Tue, 14 Dec 2004 23:34:12 +0000
Subject: Re: [SMARTY] Smarty and Oracle (databases)
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-12035@lists.php.net to get a copy of this message
If you mean getting database information into a template for display, there isn't really anything Smarty specific about it. Basically you get the database content into PHP arrays (choose your poison), then assign those arrays to the template with $smarty->assign(...) Here is one example: http://smarty.php.net/contribs/examples/mysql/ If you mean maintaining your templates in a database, see the manual about templates from other sources: http://smarty.php.net/manual/en/templates.from.elsewhere.php Monte Robert wrote:
Are there tutorials (or examples) of using Smarty with databases? I did not see in the Smarty documentation about it. I looked on the wiki as well but I may have missed it. Robert


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