i'm having trouble passing boolean values from php to smarty:
php:
if ($Scad['inc']==TRUE){
$inc = TRUE;
}else{
$inc = FALSE;
}
smarty template:
{if $inc===true}
{assign var='bg_color' value='cyano-background'}
{/if}
i get:
Warning: Trying to access array offset on null
what am i doing wrong?
$Scad
actually set to anything in php? (b) Are you calling$form->assign('inc', $inc);
or equivalent anywhere so that smarty knows what$inc
is?