Code Comments
Programming Forum and web based access to our favorite programming groups.It can do all kind of jazz, for example I use PEAR:DB with Smarty and
end up with scripts such as:
$smarty->assign(array("data" => $db->getAll("SELECT * FROM some_table"),
"time" => stopTiming());
$smarty->display("index.html",$dataHandler->getCacheID());
works like a charm ;)
Alex
Simon Benjamin wrote:
> Hello,
>
> Smarty work dynamic templates? (data from DB, PHP)
>
> ----- code -----
> ... // get data from db
> $db->FetchRow($template); // template data (string!)
>
> $SM->display($template); // ?
> ----- code -----
>
> or works only "static" files?
>
> thx
>
Post Follow-up to this messageHello, > Smarty work dynamic templates? (data from DB, PHP) If you want to retrieve the template itself from a db (or somewhere else) have a look at that: http://smarty.php.net/manual/en/tem...m.elsewhere.php - david
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.