Top "Smarty" questions

Smarty is a templating engine for PHP.

How do I check to see if a Smarty variable is already assigned?

How do I check to see if a particular value has already been assigned to Smarty and if not assign …

php smarty template-engine
Caching a PHP Array

My problem is im creating a large nested PHP array which is parsing information from multiple external sources. On the …

php arrays caching smarty
Pure PHP/HTML views VS template engines views

I would like to know which approach is faster, using the pure PHP in the HTML files or using a …

html templates smarty twig
Prestashop 1.6 session/cookie with smarty

In my prestashop a user (that is not a client or an admin) can create a "side" account (that is …

php session cookies smarty prestashop
Get Current Page Name to Prestashop 1.7 Module

I'm currently working on a Prestashop 1.7.1.0 module targeted at clothing sites. I need to get the exact page name the …

smarty prestashop prestashop-1.7
Why should I use templating system in PHP?

Why should I use templating system in PHP? The reasoning behind my question is: PHP itself is feature rich templating …

php smarty template-engine
Best way to include view within view in Codeigniter template using Dwoo?

I am using Codeigniter 1.7.2 and Phil Sturgeon's wonderful Dwoo wrapper which allows me to use the Dwoo template library in …

php codeigniter smarty template-engine dwoo
Counter inside iterate smarty loop

I have this smarty code : {iterate from=fruits item=fruit} .... {/iterate} I want to have a counter inside this loop …

smarty iteration loops
Smarty: print a specific element of an array WITHOUT using foreach loop

{foreach from=$myArray item=item} {$item.attribute} {/foreach} instead of printing all attributes of each element of the array, I …

php smarty
How to convert an array into comma separated strings in smarty template?

I've an array titled $preview_data assigned to smarty template as follows: Array ( [applicable_states] => Array ( [0] => 1 [1] => 3 [2] => 4 [3] =&…

php arrays smarty implode