Quote:
Originally Posted by AN-net
question, if we had an array set in the php code how would the if statement in the template look?
|
PHP Code:
// code above
$var = array('value', 'value2', 'value3');
// code bellow
HTML Code:
<if condition="in_array($somevar, $var)">stuff</if>
Note this
will probably tell you there is an error with a conditional in the template when saving due to the fact that $var hasn't been set and thus may not be an array, just ignore it