This question already has answers here: Closed 11 years ago. Possible Duplicate: Display array elements in smarty
I know I need to use spl_autoload_register with Smarty 3. I am registering my autoload function after smarty initializes. But smarty is trying to use my own autoload function instead of the smartyAuto
Consider the following general issue before I go to the specific problem: You use server-side templating (e.g. Smarty) to generate a page in a particular way depending on a particular state.However, y
I am a php student and i am also new to smarty.I know smarty syntax for some extent and I can use it for very basic needs.I am currently
My site is built around X-Cart 4.2.3, which is built around Smarty Templates. I am trying to figure out a way to add Facebook Comments to my dynamic product pages (https://developers.facebook.com/docs
This is part of my smarty code: {if $cat==\"3_0\" or $cat==\"3_15\" or $cat==\"3_16\" or $cat==\"3_17\"}
{foreach from=$ncache.recmd name=spon key=k item=v} {if ($smarty.foreach.spon.iteration%2) eq 0 || $smarty.foreach.spon.last}
I need to use php code in tpl file in smarty. I used {php} echo \"hello\"; {/php} But I need to use a smarty variable in php code.
I would like to do {unset($array[\'index\'])} into a Smarty 3 template. Is such a syntax (or similar) supported ? After Googling and doc reading I can\'t find something satisfying.
I have two arrays. In first array I have Type and Zone field names. These two field names have multiple values. I am using smarty. I want the select name from the first array and options for each drop