Why do you define the __autoload function when you can just call this in the loader
require_once 'Zend/Loader.php';
Zend_Loader::registerAutoload();
From my reading that is the proper way to do it in ZF.
Jon Whitcraft
Indianapolis Motor Speedway
________________________________
From: digitalus_media [mailto:
[hidden email]]
Sent: Sat 12/1/2007 10:28 AM
To:
[hidden email]
Subject: Re: [fw-mvc] file not found error - 1.03
I am having this same issue in a very simple local utility tool.
My Bootstrap:
<?php
date_default_timezone_set('America/New_York');
set_include_path('.' . PATH_SEPARATOR . get_include_path() .
'/ZendFramework-1.0.3'
. PATH_SEPARATOR . '../library'
. PATH_SEPARATOR . '../application/models');
include "Zend/Loader.php";
function __autoload($class)
{
Zend_Loader::loadClass($class);
}
//setup session
Zend_Session::start();
// load configuration
$config = new Zend_Config_Xml('../application/data/config.xml', 'DSF');
//get an instance of the registry
$registry = Zend_Registry::getInstance();
//save the config information into the registry
$registry->set('config', $config);
$registry->set('post',$_POST);
// setup controller
$frontController = Zend_Controller_Front::getInstance();
$frontController->throwExceptions(true);
$frontController->setControllerDirectory('../application/controllers');
// run!
$frontController->dispatch();
--
View this message in context:
http://www.nabble.com/file-not-found-error---1.03-tf4924086s16154.html#a14106328Sent from the Zend MVC mailing list archive at Nabble.com.
********************
********************
This E-mail (and attachments) may contain confidential/privileged information intended only for the named addressee(s). If you are not an intended recipient, do not read, copy, disseminate or take any action based on the content of this E-mail. Please notify the sender by reply E-mail and erase this E-mail from your system. Your assistance is appreciated. E-mail transmission may not be secure or error-free. The company is not responsible for any loss/damage arising from any virus transmitted.
********************
********************