Jump to content

Zend Loader


9three

Recommended Posts

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?

Link to comment
https://forums.phpfreaks.com/topic/140728-zend-loader/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.