Author Topic: Zend Loader  (Read 2786 times)

0 Members and 1 Guest are viewing this topic.

Offline 9threeTopic starter

  • Enthusiast
  • Posts: 411
    • View Profile
Zend Loader
« on: January 13, 2009, 04:56:09 PM »
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:

Code: [Select]

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?

Offline 448191

  • Staff Alumni
  • Fanatic
  • *
  • Posts: 3,506
  • Gender: Male
    • View Profile
Re: Zend Loader
« Reply #1 on: January 14, 2009, 02:28:43 PM »
You have to pass the full class name (Zend_ProgessBar).