Smarty is a templating engine for PHP.
In Smarty, is there a standard function or an easy way to generate json from an array, as json_encode() …
php smarty jsonHow can I get the total number of items in an array using Smarty? Can I use {$smarty.foreach.foo.…
smartyIm using the following Smarty code: {foreach from=$entries key=i item=topic} {if $topic.topic_style == question} <li&…
foreach smartyI need to create a new array from other one dimensional array in smarty template. So, what are the best …
php smartyIm trying to format numbers with thousands separator Smarty. So for example 1000 becomes 1,000. Thanks.
smartyi get date with: {$smarty.now|date_format:'%Y-%m-%d %H:%M:%S'} But how get 20 day after? …
smartyI have an array called $mydata that looks like this: Array ( [0] => Array ( [id] => 1282 [type] =>2 ) [1] => Array ( [id] =&…
php smartyHow can I print the first n characters of a smarty variable, e.g. the first 30 characters of {$var}?
smartyI want to assign the value obtained from the concatenation of these two variables with a string. {assign var="url" …
smartyI am having issue formatting variables in smarty. I was wondering what is the best way to do it. Basically …
php smarty smarty2