![]() |
Using the Zend Loader
I understand that the Zend Loader is to avoid having to use includes/requires all over your page?
I'm having a problem doing that though. This is what a podcast from ZF site said to do: PHP Code:
When I use that code I get errors: Code:
Warning: require_once(Zend/Loader.php) [function.require-once]: failed to open stream: No such file or directory in C:\Users\9three\Desktop\Server\htdocs\tests\index.php on line 5All though it all matches im still getting the error. What am I doing wrong? |
Add the include paths to your Zend Framework in your index.php. Something like the following should work:
php Code:
|
All the components listed here:
http://framework.zend.com/manual/en/ I'm assuming that those are the class names. If I wanted to use the Zend_Mail compnent, I would do: Zend_Loader::loadClass('Mail'); Correct? |
It would be:
php Code:
The class names basically follow their directories. Take Zend_Mail. Just by looking at its class name I can tell it's in Zend/Mail.php. Everything in Zend follows this structure. |
| All times are GMT. The time now is 10:32 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0