Thank you for clarification

I replaced

/**
 * Require files
 */
require 'Zend/Loader.php';

///**
// * Function to autoload all the required classes. Eliminates the need to use the
// * loadClass method anywhere else within the site.
// *
// * @param  string $class
// * @return void
// */
//function __autoload($class)
//{
//    Zend_Loader::loadClass($class);
//}

with

/**
 * Require files
 */
require 'Zend/Loader.php';

Zend_Loader::registerAutoload();

And this did the trick

Matthew Weier O'Phinney wrote:
-- Ian Warner <[EMAIL PROTECTED]> wrote
(on Saturday, 19 January 2008, 01:51 AM +0000):
I want to upgrade to 1.03 from 1.01

My autoload in the bootstrap looks like this

require 'Zend/Loader.php';

/**
* Function to autoload all the required classes. Eliminates the need to use the
 * loadClass method anywhere else within the site.
 *
 * @param  string $class
 * @return void
 */
function __autoload($class)
{
    Zend_Loader::loadClass($class);
}

Now I believe from reading the loader docs that this has changed, my home dev machine is Windows Vista with PHP Version 5.2.3

This is my SPL from phpinfo - whats funny is that i dont have the autoload feature it seems - can someone help me get it and also post there bootstrap code for autoloading now.

spl_autoload isn't listed in the support for some reason, but as long as
SPL is enabled, spl_autoload is as well.

So, don't create an __autoload() method, and instead use this for
autoloading:

    Zend_Loader::registerAutoload();

And all will work fine (there have been a number of posts to the list
regarding this).

SPL
SPL support     enabled
Interfaces Countable, OuterIterator, RecursiveIterator, SeekableIterator, SplObserver, SplSubject Classes AppendIterator, ArrayIterator, ArrayObject, BadFunctionCallException, BadMethodCallException, CachingIterator, DirectoryIterator, DomainException, EmptyIterator, FilterIterator, InfiniteIterator, InvalidArgumentException, IteratorIterator, LengthException, LimitIterator, LogicException, NoRewindIterator, OutOfBoundsException, OutOfRangeException, OverflowException, ParentIterator, RangeException, RecursiveArrayIterator, RecursiveCachingIterator, RecursiveDirectoryIterator, RecursiveFilterIterator, RecursiveIteratorIterator, RecursiveRegexIterator, RegexIterator, RuntimeException, SimpleXMLIterator, SplFileInfo, SplFileObject, SplObjectStorage, SplTempFileObject, UnderflowException, UnexpectedValueException

Reply via email to