Better use the following code:

require_once 'Zend/Loader.php';
Zend_Loader::registerAutoload();


Ian Warner-4 wrote:
> 
> Hi
> 
> 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
> 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
> 
> Cheers
> 
> Ian
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Autoload-in-1.03-tp14966121s16154p14968095.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to