|
|||
|
Hi,
I know this will be a dumb question, but I won't be the only one ot ask it, so..... I'm relatively new to Zend Framework. I had it working fine (with MVC layout, htaccess set etc) and was chooffing through some examples when I happened to upload a sample file onto my server, and I suspect it may have changed something???? Now when I try to get going, all I get is this messgae Warning: Zend_Loader::include_once(Zend.php) [function.Zend-Loader-include-once]: failed to open stream: No such file or directory in /home/lukechaf/public_html/library/Zend/Loader.php on line 83 Warning: Zend_Loader::include_once() [function.include]: Failed opening 'Zend.php' for inclusion (include_path='/home/lukechaf/public_html/application/controllers:/home/lukechaf/public_html/library') in /home/lukechaf/public_html/library/Zend/Loader.php on line 83 Fatal error: Class 'Zend' not found in /home/lukechaf/public_html/application/controllers/IndexController.php on line 2 Seems to be looking for Zend.php. But as far as I can tell there isn't a Zend.php in the framework library. Is there? Any help is appreciated. evildave |
|
|||
|
Fixed it!
Here's the answer for anyone else who does this. I was trying out a tutorial, which was available at ibm.com, and obviously using an older version of the framework, they referred to Zend.php (which has been replaced by Zend Loader I believe). In the file it had 'require once 'Zend.php' which I correctly changed to 'require once 'Zend_Loader.php' ..but, i had overlooked the next line which tried to load the controller using Zend rather than the loader ie Zend::loadClass('Zend_Controller_Action'); should have been Zend_Loader::loadClass('Zend_Controller_Action'); New to Zend, but many years of debugging in other areas, still frustrates the crap outta me! Good luck all! |
![]() |
| Thread Tools | |
| Display Modes | |
|
|