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
Post a Comment