Hi,

  I have in my application bootstrap.php:

protected function _initAutoLoad()
{

        $autoloader = new Zend_Application_Module_Autoloader(array(
                'namespace' => 'Default_',
                'basePath'  => dirname(__FILE__),
        ));

        return $autoloader;
}

  Does the name of the method ( _initAutoLoad() ) mean anything?
  Why do I need to tell the application about my Models in the 'Default_'
model namespace?
  I can make a new model with the code:

$c = new Default_Model_Table();

  In my module I have the following bootstrap.php:

class Projects_Bootstrap extends Zend_Application_Module_Bootstrap
{
        public function __construct($application)
        {
                parent::__construct($application);
                //echo "Projects Bootstrap loaded!";
        }
}

  I my model I can make a new model with this code:

$t = new Projects_Model_Table();


  How does the application know where these models are?
  Why don't I need to register the 'Projects_' namespace?
  Why is this different to the application bootstrap.php?

Thanks for any help you can provide!

monk.e.boy

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

Reply via email to