Hi,
I have the following directory structure
application
---Bootstrap.php
---modules
------admin
------default
---------controllers
---------models
----------- Account.php (with class Model_Account)
---------views
------job
--------Bootstrap.php( with class Job_Bootstrap extends
Zend_Application_Module_Bootstrap)
--------controllers
---------models
------------ Index.php (with class Job_Model_Index)
---------views
I am unable to setup aotoload for Job_Model_Index.
These are the contents of the application/Bootstrap.php
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
...
protected function _initAutoload()
{
$autoloader = new Zend_Application_Module_Autoloader(array(
'namespace' => '',
'basePath' => dirname(__FILE__) . '/modules/default'
));
return $autoloader;
}
}
And below is the content of application/modules/job/Bootstrap.php
class Job_Bootstrap extends Zend_Application_Module_Bootstrap
{
public function __construct($application)
{
parent::__construct($application);
// echo "Bootstrap loaded!"; exit(1);
}
public function _initAutoload()
{
$autoloader = new Zend_Application_Module_Autoloader(array(
'namespace' => '',
'basePath' => dirname(__FILE__)
));
return $autoloader;
}
}
The Job_Bootstrap is not instantiated at all.
I read the manual and few threads here, but could not figure out a
solution. Can somebody suggest what is wrong with my code?
--
With warm regards,
Sudheer. S
Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net,
Personal: http://sudheer.net