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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.