|
|||
|
Hi All
I am new to the Zend framework and I am writing a simple helloworld script and I am getting the following error which I can't work out Fatal error: Cannot access protected property Zend_Controller_Front::$_instance in /usr/share/php/Zend/library/Zend/Controller/Front.php on line 165 What does this mean? Code snippet of index controller PHP Code:
Thanks in advance Danny |
|
|||
|
Hi here is my bootstrap file, sorry for the delay
PHP Code:
|
|
|||
|
This seems to be an old post but I thought I will respond since it may be useful to someone else.
I don't know why your error is occurring.. However I found a typo: It seems like you are following the example given in PHP Architect's Guide to Programming with Zend. Unfortunately that book have a gazillion typos. For no view rendering (that is the case since you did not create the index.phtml) you have to set param: $frontController->setParam('noViewRenderer', true); The following is wrong - the Front Controller is trying to render the non-existant view. $frontController->setParam('noViewRendered', true); Fixing this may not help you but you can try. Hope this helps. Hari Gangadharan Last edited by harinair : 10-08-2008 at 07:13 AM. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|