I am starting to be able to figure out to do with most of the error messages from Zend. I am building a skeleton for a legacy app, and hopefully we'll be able to adapt a lot of the legacy logic while letting Zend do as much of the boilerplate as possible, at least that is the hope. But right now it's just pretty much a skeleton. I'm basing my work on Rob Allen's Zend Framework in Action without which I would be like the kid buried in a pile of really awesome specialized legos with no idea which one connects to which other one.
I decided to make a menu and that was fine. Then I decided to hook it up to something so I created a controller for the thing that the menu points to, and let it just be the index action. Now when I click on the menu item am running the thing out of memory. The home page is OK but when I try to click the menu item I get
Allowed memory size of 16777216 bytes exhausted (tried to allocate 40961 bytes) in /var/www/zftest/library/Zend/Controller/Dispatcher/Standard.php on line 281
The url of the home page is http://localhost/tru/public/
The url of the menu item is http://localhost/tru/public/panel
I have a PanelController and I have an indexAction for it. This is it:
It's suppose to have a login form and I don't have my head all around that yet. So I commented all the guts of the method so it's just a nop but it didn't help. And BTW this is myCode:class PanelController extends Zend_Controller_Action { public function indexAction() { if (null === Zend_Auth::getInstance()->getIdentity()) { $this->forward('form'); } } }
index.phtml in views/scripts/panel
<p>Bogus Panel Index</p>
Well this error is the result of something wrong but not very helpful in telling me what it is or what to look at next. Any veterans offer a hint?