smarty syntax for foreach
Posted: Thu Dec 03, 2009 11:04 pm
please help me.
im new to smatry templates
there are 4 categories. how to get category id's in tpl file?
i have coded in php page
i want to display in foreach syntax only.
here in php file i get category ids [1 2 3]. but im unable to display in tpl file.
please help me
thank you in advance
regards
bhanu
im new to smatry templates
there are 4 categories. how to get category id's in tpl file?
i have coded in php page
Code: Select all
foreach ($result as $row)
{
$result['id_category'] = $row ;
}here in php file i get category ids [1 2 3]. but im unable to display in tpl file.
please help me
thank you in advance
regards
bhanu