how to hide a template only if a variable is set to a value ?
Posted: Thu Dec 29, 2005 3:29 am
hello
i would like to show a template only if a var is defined like
$tmpl->addVar ('mytmpl','myvar',1);
test1
test2
i do like this, but i don't think that its fine.
i dont want to use visibility attribute because the value is inside an array that is given with addRows.
(i used addVar for the exemple because its simplier).
(i have made a toolbar, and i want the text to be displayed all the time , but only sometimes, i want to hide it)
i would like to show a template only if a var is defined like
$tmpl->addVar ('mytmpl','myvar',1);
test1
test2
i do like this, but i don't think that its fine.
i dont want to use visibility attribute because the value is inside an array that is given with addRows.
(i used addVar for the exemple because its simplier).
(i have made a toolbar, and i want the text to be displayed all the time , but only sometimes, i want to hide it)