php - I want to fetch data -


i want fetch data data base don't know how fetch data in smarty. please me.

you fetch normally. "send" smarty using $smarty->assign().

like this:

$name = 'john'; $smarty = new smarty(); $smarty->assign('firstname', $name); 

in smarty template can use {$firstname} access data in $name:

<p>hello, {$firstname}!</p>


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -