Top "Smarty" questions

Smarty is a templating engine for PHP.

What are .tpl files? PHP, web design

Someone wants me to redesign a site run in PHP (VideoCMS). But when I asked him to send me the …

php html smarty
How to Debug Variables in Smarty like in PHP var_dump()

I have some variables inside a template and I don't know where I assigned them. I need to know what …

php templates debugging smarty
How to assign an array within a smarty template file?

I was wondering if it was possible to assign an array to a variable within a Smarty template file? I …

php smarty
How can I get current URL using smarty

How to get URL using Smarty similar to window.location in JavaScript ? I did this {$smarty.server.PHP_SELF} but …

smarty
How do you increment an assigned variable in smarty without displaying it

So I have an assigned variable in smarty: {assign var=number value=0} Now I can increment it using {$number++} or {++$…

php smarty
Smarty local variable concatenation with string

How to assign a local template variable with a string concatenated just like below: {$yes_src=const1.'yes'.const2} to …

php smarty
Using PHP code in Smarty tpl FIle

I am new to smarty and I want to use php code in template file i-e tpl file. I have …

php smarty prestashop
Is it possible to format a number to 2 decimal places with Smarty PHP

Is it possible to format a number to 2 decimal places with Smarty PHP? Thanks.

php smarty
{if not isset} Smarty

what is the code for smarty for if (!isset($var)){ ? if using {if $x eq '5'} when $x is …

php smarty
Print all variables available in a Smarty template

How do you print all variables available in the context of a Smarty template? Something like the Django debug trace …

php smarty