![]() |
Multi level category menu problem - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Multi level category menu problem (/showthread.php?tid=30211) |
Multi level category menu problem - El Forum - 05-06-2010 [eluser]sihijau[/eluser] Hi i create multi level category menu from database, category table structure: -id -parentid -name -url i create methods in category model method 1 Code: function getActiveCategory(){ Code: function getCategoryMenu($category,$parent){ when i call getActiveCategory on my controller method works, it show me list * CLOTHES o Shoes + Sport Shoes o T-shirts o pants o dresses o test2 * FUN o toys o games + PC Games + PS2 Games * OTHER but i got an error: Quote:Severity: Notice Line 61 on my IDE point to Quote:if ($category[$parent]) { Could anyone help me please..? Multi level category menu problem - El Forum - 05-06-2010 [eluser]dmorin[/eluser] Code: if ($category[$parent]) Code: if (isset($category[$parent])) Code: if (array_key_exists($parent, $category)) Multi level category menu problem - El Forum - 05-06-2010 [eluser]sihijau[/eluser] Oh thanks for pointing me to check array key ![]() problem solved |