For Programmers: Free Programming Magazines  


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)
Mike

2004-12-14, 9:02 pm

I'm fairly new to Smarty, so feel free to correct me if I'm wrong, but
Smarty shouldn't really be interacting with your DBs at all. The PHP code
should be interacting with the DB and Smarty will just output the values you
designate in the templates.

If you pretend that the values generated by the queries are hard-coded
variables, then it's easy to see where Smarty is used - just displaying the
data. Smarty really doesn't care how you get the data into the variables you
designate to template.

-M

> -----Original Message-----
> From: news [mailto:news@sea.gmane.org] On Behalf Of Robert
> Sent: Tuesday, December 14, 2004 4:40 PM
> To: smarty-general@lists.php.net
> Subject: [SMARTY] Smarty and Oracle (databases)
>
> 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
>
> --
> Smarty General Mailing List (http://smarty.php.net/) To
> unsubscribe, visit: http://www.php.net/unsub.php
>

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com