Code Comments
Programming Forum and web based access to our favorite programming groups.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/tem...m.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 > > >
Post Follow-up to this message"Monte Ohrt" <monte@ispi.net> wrote in message news:41BF7874.5050808@ispi.net... > 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:t > 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/tem...m.elsewhere.php > > Monte > Thanks, first one was exactly what I was meaning. :-) Robert
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.