Top "Smarty" questions

Smarty is a templating engine for PHP.

Break in Smarty's / Dwoo's foreach

About break foreach ( $data as $k => $v ) { if ( $k == 4 ) { break; } } every one knows. Is there something similar in Smarty's …

php smarty dwoo
Smarty integration into the CodeIgniter framework

A Little Background Information: I've been looking at a few PHP framework recently, and it came down to two. The …

codeigniter zend-framework smarty
Smarty : evaluate a template stored in a PHP variable

i have a php variable which has html/smarty code in it $x='<a href="{$link}" >{$title}&…

php smarty
Prestashop $logged and $is_logged

I get issue with Smarty, sometimes in default code occures $is_logged ..\modules\blockuserinfo\blockuserinfo.php [...] public function hookDisplayTop($params) { …

php logging smarty prestashop-1.6
How to create custom page on Front-Office with a module on prestashop 1.7

I have created the button A on product details page. When click A button, it will redirect to my custom …

php smarty prestashop prestashop-1.7
smarty passing the value from {math} equatio to a variable

Have a nice day everyone, I have something to ask your hel, to better understand here is my code: {math …

math variables smarty equation
Assign JavaScript var from Smarty in Prestashop 1.6

I'm trying to define a JS variable which gets it's value from a smarty variable.. This is what I've done …

javascript php smarty prestashop prestashop-1.6
How to generate year in Smarty?

How can i generate a select list with the given year till this year? i did this {assign var=thisyear …

php date loops smarty
Dynamic variable names in Smarty

I want to be access some variables I've assigned dynamically from PHP in Smarty, here is an example: $content_name = …

php smarty dynamic-variables
Smarty "capitalize" modifier... always capitalizes "L"? ... and "P"?

Quite simply: I'm using Smarty and the |capitalize modifier. It works fine, but when I pass any word with l …

smarty modifier setlocale capitalize