{if not isset} Smarty

what is the code for smarty for if (!isset($var)){ ?

if using {if $x eq '5'} when $x is not defined in smarty , it gives an error function call 'get_template_vars' is unknown or deprecated. . this is what i believe so far as i lost hope in trying to know where did this error come from !

Thanky you .


{if ! isset($var)}
body must be at least 30 characters. :)

Try this.

{if $missing_var|default:FALSE}

Try This

{if $var}

Need Your Help

Ionic app image upload from camera / photo library

ios camera ionic-framework file-transfer ngcordova

I'm working on a ionic chat app where the user can upload a photo as part of their message. I'm looking for a way to upload the image to my webhost server so I can retrieve it later via a URL.

Microsoft Excel mangles Diacritics in .csv files?

excel encoding csv diacritics

I am programmatically exporting data (using PHP 5.2) into a .csv test file.