Thursday 16 October 2008 10:31:35 am
Justin,
If you explicitly refer in a conditional statement to an inexistent variable, a warning or a notice will be thrown. This is exactly why isset-like functions exist, and eZ has those as well:
http://ez.no/doc/ez_publish/technical_manual/4_0/reference/template_operators/variable_and_type_handling/is_set
http://ez.no/doc/ez_publish/technical_manual/4_0/reference/template_operators/variable_and_type_handling
http://ez.no/doc/ez_publish/technical_manual/4_0/reference/template_operators/data_and_information_extraction/ezhttp_hasvariable
http://ez.no/doc/ez_publish/technical_manual/4_0/reference/template_operators/data_and_information_extraction/ezini_hasvariable
...
Hope this helps,
Cheers, Piotrek
--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu
|