yoursurrogategod Posted December 13, 2012 Share Posted December 13, 2012 (edited) Hi all, in the title you will see what I'm getting for an error, this is the whole page: An error occurred Application error Exception information: Message: No entry is registered for key 'ichldm' Stack trace: #0 D:\ZendServer\share\ZendFramework\library\Zend\Db\Table\Abstract.php(607): Zend_Registry::get('ichldm') #1 D:\ZendServer\share\ZendFramework\library\Zend\Db\Table\Abstract.php(581): Zend_Db_Table_Abstract::_setupAdapter('ichldm') #2 D:\ZendServer\share\ZendFramework\library\Zend\Db\Table\Abstract.php(283): Zend_Db_Table_Abstract->_setAdapter('ichldm') #3 D:\ZendServer\share\ZendFramework\library\Zend\Db\Table\Abstract.php(265): Zend_Db_Table_Abstract->setOptions(Array) #4 D:\www\andrew\hldm\application\controllers\IndexController.php(12): Zend_Db_Table_Abstract->__construct('ichldm') #5 D:\ZendServer\share\ZendFramework\library\Zend\Controller\Action.php(516): IndexController->indexAction() #6 D:\ZendServer\share\ZendFramework\library\Zend\Controller\Dispatcher\Standard.php(295): Zend_Controller_Action->dispatch('indexAction') #7 D:\ZendServer\share\ZendFramework\library\Zend\Controller\Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #8 D:\ZendServer\share\ZendFramework\library\Zend\Application\Bootstrap\Bootstrap.php(97): Zend_Controller_Front->dispatch() #9 D:\ZendServer\share\ZendFramework\library\Zend\Application.php(366): Zend_Application_Bootstrap_Bootstrap->run() #10 D:\www\andrew\hldm\public\index.php(26): Zend_Application->run() #11 {main} Request Parameters: array ( 'controller' => 'index', 'action' => 'index', 'module' => 'default', ) This is my boostrap file: <?php class Bootstrap extends Zend_Application_Bootstrap_Bootstrap { protected function _initResourceLoader() { $this ->getResourceLoader() //gets resource loader obj defined in the bootstrap ->addResourceType('entity', 'models\entities', 'Model_Entity'); } protected function _initDatabase() { // get config from config/application.ini $config = $this->getOptions(); $db = Zend_Db::factory( $config['resources']['db']['ichldm']['adapter'], $config['resources']['db']['ichldm']); //set default adapter Zend_Db_Table::setDefaultAdapter($db); //save Db in registry for later use Zend_Registry::set("db", $db); } } This is my 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" appnamespace = "Application" resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers" resources.frontController.params.displayExceptions = 0 [staging : production] [testing : production] phpSettings.display_startup_errors = 1 phpSettings.display_errors = 1 [development : production] phpSettings.display_startup_errors = 1 phpSettings.display_errors = 1 resources.frontController.params.displayExceptions = 1 resources.db.ichldm.adapter = "PDO_MYSQL" resources.db.ichldm.host = "**************" resources.db.ichldm.username = "**************" resources.db.ichldm.password = "**************" resources.db.ichldm.dbname = "ichldm" What am I missing that could cause this problem? Edited December 13, 2012 by yoursurrogategod Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.