Hi
My Bootstrap.php class file looks like this:
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
protected function _initAutoLoad()
{
$this->_resourceLoader = new Zend_Application_Module_Autoloader(
array(
'namespace' => '',
'basePath' => APPLICATION_PATH
));
}
...
}
This way, forms in application/forms are correctly loaded.
The application config is stored in an array.
$config = array(
"phpSettings" => array(
"display_startup_errors" => 1,
"display_errors" => 1
),
"includePaths" => array(
"library" => APPLICATION_PATH . "/../library"
),
"bootstrap" => array(
"path" => APPLICATION_PATH . "/Bootstrap.php",
"class" => 'Bootstrap'
),
"autoloaderNamespaces" => array('ZendExt_'),
"resources" => array(
"frontController" => array(
"controllerDirectory" => APPLICATION_PATH . "/controllers",
),
"layout" => array(
"layout" => 'layout',
"layoutPath" => APPLICATION_PATH . "/layouts/scripts"
),
"db" => array(
"params" => array(
"host" => 'localhost',
"username" => 'user',
"passsword" => '******',
'dbname' => '******',
'charset' => 'utf8'
),
"isDefaultTableAdapter" => true
)
)
);
Is there a way to add the forms path in the config array and having them
loaded without rhe _initAutoload() resource method?
Cheers
holo