[eluser]jonny68[/eluser]
Hi,
i'm building my site categories with database and i tested it on another server with CI version 1.7.2 now i'm trying the same with lastest version and it give some error, i know
php 4 is not accepted anymore so i'd like understand where the problem is..
This is the code:
Code:
if (count($navlist)){
echo "<ul>";
foreach ($navlist as $key => $list){
foreach ($list as $topkey => $toplist){
echo "<li class='cat'>";
echo anchor('home/cat/'.$topkey,$toplist['name']); //line 10
echo "</li>\n";
if (count($toplist['children'])){
foreach ($toplist['children'] as $subkey => $subname){
echo "\n<li class='subcat'>";
echo anchor('home/cat/'.$subkey,$subname);
echo "</li>";
}
}
}
}
echo "</ul>\n";
}
What happens is that php tells me: undefinded index name in line 10. but show me
all the menu item with error in between and some link with http// etc..
Well! If somebody help me i'd be glad
Thanks in advance!