Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Re: [SMARTY] Smarty and Oracle (databases)
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
>
>
>

Report this thread to moderator Post Follow-up to this message
Old Post
Monte Ohrt
12-15-04 02:01 AM


Re: [SMARTY] Smarty and Oracle (databases)
"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

Report this thread to moderator Post Follow-up to this message
Old Post
Robert
12-15-04 09:00 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Smarty Templates archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 07:45 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.