Bug in Smarty 2.5.0rc1

From: Date: Thu, 06 Mar 2003 12:32:08 +0000
Subject: Bug in Smarty 2.5.0rc1
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-8438@lists.php.net to get a copy of this message
In Smarty 2.4.2 this worked and now it doesn't {section name=i loop=$catagorys} <a name='{$catagorys[i].catagory_id}'></a> <tr> <th>{$catagorys[i].catagory_name}</th> </tr> <tr> <td align='center'> <table border='0' cellspacing='0' cellpadding='0' width='95%'> {assign var="cat_id" value="$catagorys[i].catagory_id"} {section name=id loop=$faqs[$cat_id]} <tr><td width='72' class='table'>Question:</td><td class='table'>{$faqs[$cat_id][id].faq_question}</td></tr> <tr><td width='72' class='table'>Answer:</td><td class='table'>{$faqs[$cat_id][id].faq_answer}</td></tr> {/section} </table> </td> </tr> {/section} $cat_id in Smarty 2.4.2 was actually assigned as the variable.. Now its assigned this "Array[i].catagory_id" Is this a problem with the new syntax updates or do I need to go about another method.. The arrays are as follows.. {$catagorys} Array (3) 0 => Array (2) catagory_id => 7 catagory_name => Name 1 1 => Array (2) catagory_id => 6 catagory_name => Name 2 2 => Array (2) catagory_id => 8 catagory_name => Name 3 {$faqs} Array (2) 7 => Array (5) 0 => Array (2) faq_question => Question 1 faq_answer => Answer 1 1 => Array (2) faq_question => Question 2 faq_answer => Answer 2 2 => Array (2) faq_question => Question 3 faq_answer => Answer 3 That is just part of the array.. Thanks.. Rob Schultz

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