Reputation: 778
Given:
1.
bootstrap:
$autoloader = Zend_Loader_Autoloader::getInstance();// Zend_Loader_Autoloader
$autoloader->registerNamespace('Ntk_');
equals to
application.ini:
autoloaderNamespaces[] = "Ntk_"
2.
bootstrap:
$pluginLoader = $this->getPluginLoader();// Zend_Loader_PluginLoader
$pluginLoader->addPrefixPath('My_Resource', APPLICATION_PATH . "/appResourcePlugins");
equals to
application.ini:
pluginPaths.My_Resource = APPLICATION_PATH "/appResourcePlugins"
3.
bootstrap:
$moduleAutoloader = $this>getResourceLoader();//Zend_Application_Module_Autoloader
$moduleAutoloader->addResourceType('need', 'needs', 'Needs');
equals to
application.ini:
???
What is the application.ini method for configuring Zend_Application_Module_Autoloader ?
(...if it exists)
I use zend framework version 1.11.10
Upvotes: 2
Views: 3435
Reputation: 1147
Maybe this example will help you:
<?php
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
protected function _initApplication()
{
$this->bootstrap('frontcontroller');
$front = $this->getResource('frontcontroller');
$front->addModuleDirectory(dirname(__FILE__) . '/modules');
}
protected function _initDoctype()
{
$this->bootstrap('view');
$view = $this->getResource('view');
$view->doctype('XHTML1_STRICT');
}
}
Here is application.ini
[production]
phpSettings.display_startup_errors = 0
phpSettings.display_errors = 0
includePaths.library = APPLICATION_PATH "/../library"
bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
bootstrap.class = "Bootstrap"
resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"
resources.modules = ""
resources.layout.layout = "layout"
resources.layout.layoutPath = APPLICATION_PATH "/layouts/scripts"
resources.view[] =
[staging : production]
[testing : production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1
[development : production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1
Reference:someone had the same question and got his answer here
Upvotes: -1