Top "Smarty" questions

Smarty is a templating engine for PHP.

Get first Smarty Array-Element

How can i get the first smarty array element ? Actually i know how to do this... but i have following …

arrays smarty smarty2
How to combine two string in Smarty?

Why doesn't this work in Smarty? {my_function($test.'a1')} It's showing following error: Fatal error: Uncaught exception 'SmartyCompilerException' …

php smarty echo smarty3
Smarty: unset an array index in template

I would like to do {unset($array['index'])} into a Smarty 3 template. Is such a syntax (or similar) supported ? After …

php arrays templates smarty unset
Undefined font: In Fpdf

I'm New to Fpdf library, i need to create a pdf from data base in smarty. i have checked the …

php database pdf smarty fpdf
strip spaces from string using smarty

I am new to smarty. I want to know how to remove all white-space characters from a given string in …

php string smarty smarty3
Force Smarty to show PHP errors

I've been working with PHP for a while, but fairly new to Smarty. I'm working with Prestashop and I've noticed …

php smarty prestashop
How to fix error "Fatal error: Uncaught --> Smarty: unable to write file"?

I migrated Prestashop from localhost to website domain using digitalocean, but when I open this website I get this error …

php permissions migration smarty prestashop
{if}{else} do not work properly in smarty

I have following smarty code on my template {capture name="diff"} {datediff timestamp=$data_base.updated_date} {/capture} {$smarty.capture.…

php smarty smarty3 smarty2
How to define a variable with random values in Smarty

I need to assign a variable which will be used to create the id label for some html elements. And …

html smarty
smarty section loop

I am trying to get a loop for following... {$product.min_val} //2 {$product.max_val} //8 and i am trying following... {…

php smarty