E_ALL notices

From: Date: Tue, 31 Jul 2001 17:33:03 +0000
Subject: E_ALL notices
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-1304@lists.php.net to get a copy of this message
Hi all, With the current discussion regarding the future settings of php, register_globals to Off and E_ALL instead of E_ALL & ~E_NOTICE, I decided that it might be handy to check how far I would get. Most of the smarty variables are no problem but passing an assoc array to a section loop does give me some trouble. I'm getting a warning that says: Unknown index cid in .... The template code being used looks like this: {section name=c loop=$clist} {if $clist[c].cid} <a href="{$page}?cat={$clist[c].cid}"> {elseif $clist[c].cat} {$clist[c].cat}</a><br> {/if} {/section} Can anyone explain to me if this is something I'm doing wrong or is this something in Smarty? Regards, Hans Linux : http://linux.gelrevision.nl/ phpReview : http://phpReview.nl.linux.org/ Boeken : http://nl.linux.org/boeken/

« previous php.smarty.general (#1304) next »