9three Posted January 13, 2009 Share Posted January 13, 2009 Hey all, I'm only using the Zend Loader to avoid having to use includes/requires all over my page. I don't really like the MVC structure :-\ I'm having a problem though, from a podcast I saw on the Zend framework page: <?php //include paths ini_set('include_paths', ini_get('include_paths') . PATH_SEPERATOR . '../library/'); require_once 'Zend/Loader.php'; Zend_Loader::loadClass('ProgressBar'); ?> So the podcast says all I have to use now is Zend_Loader::loadClass to initiate any class I need. When I do that though, it gives me an error: 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 5 Fatal error: require_once() [function.require]: Failed opening required 'Zend/Loader.php' (include_path='.;C:\Users\9three\Desktop\Server\php\pear\') in C:\Users\9three\Desktop\Server\htdocs\tests\index.php on line 5 I'm running on XAMPP so I don't know if thats the problem? Quote Link to comment https://forums.phpfreaks.com/topic/140728-zend-loader/ Share on other sites More sharing options...
448191 Posted January 14, 2009 Share Posted January 14, 2009 You have to pass the full class name (Zend_ProgessBar). Quote Link to comment https://forums.phpfreaks.com/topic/140728-zend-loader/#findComment-737176 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.