Top "Smarty" questions

Smarty is a templating engine for PHP.

How can I check if a variable exists in Smarty?

I'm using Smarty template engine. I'm doing a simple login page. I set a variabile named error with a message …

php smarty
How can I increment a Smarty variable?

I am not usually a Smarty guy, so I'm a bit stuck. I want to echo the index of an …

php smarty
Smarty: How to reference to the associative array index

Array $imagelist: Array ( [additional] => Array ( [count] => 2 [image] => Array ( [nokia_e61_1.jpg] => Array ( [name_body] => nokia_…

php arrays indexing reference smarty
How to access key and value of an array in smarty template?

I'm assigning an array named $enquiries_labels from php file to a smarty template file. If I print the array …

php arrays foreach smarty
Is there a Switch case in smarty?

I am working on a website using Smarty. I have searched the web to find out whether or not I …

smarty
Call to a member function on a non-object

I'm working through Practical Web 2.0 Appications currently and have hit a bit of a roadblock. I'm trying to get PHP, …

php zend-framework smarty
How to put HTML data into header of tcpdf?

I'm using the tcpdf library to generate the pdf document. I'm using smarty template engine to hold the data. Below …

php html smarty tcpdf
smarty convert string to number

I need to do deviding: {math equation="x/y" x=$x y=$y} // $x = '2', $y = '3' How …

php smarty smarty2
Smarty If URL Contains

Using Smarty Tags I'd like to determine if an URL contains a word, something like: {if $smarty.get.page contains "…

php smarty x-cart
Smarty: check if variable is in array

I'm using php with smarty. In php I have two arrays: $code = Array ( [n_id] => 1 [t_code] => ABC123 […

php arrays smarty