Home > Archive > PHP Smarty Templates > December 2004 > Re: [SMARTY] Smarty and Oracle (databases)
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Re: [SMARTY] Smarty and Oracle (databases)
|
|
| Monte Ohrt 2004-12-14, 9:01 pm |
| 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
>
>
>
| |
| Robert 2004-12-15, 4:00 pm |
| "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
|
|
|
|
|