Hi I've got an error in my Zend Framework project...
It raised:
Invalid controller specified (myweb)
Here is my apache error.log
:
PHP Warning: Invalid argument supplied for
foreach()
in /var/www/myweb/application/layouts/scripts/layout.phtml on line 107
Here's my code in layout.phtml
:
<?php foreach($this->category as $categories):?>
<li><a href="<?php echo $this->url(array('controller'=>'product', 'action'=>'index','category'=> $categories['categoriesName']), null, true);?>"><div id="sidemenu"> �<?php echo $categories['categoriesName'];?></div></a></li>
<?php endforeach;?>
Can anybody help me?