Forums / Developer / Best practice for handling keys in $view_parameters
Lars Eirik R
Friday 06 May 2011 2:02:29 am
Hi. I need to check if my $view_parameters contains a given key. What is the best approach for doing this without getting any warnings in my log.
Could someone verify that is_set is the right way? seems to work
Ivo Lukac
Friday 06 May 2011 2:50:14 am
Yes:
{if is_set($view_parameters.foo)}
{/if}
http://www.linkedin.com/in/ivolukac http://www.netgen.hr/eng/blog http://twitter.com/ilukac