Zend framework 将数据库表连接到引导数据库失败

Zend framework 将数据库表连接到引导数据库失败,zend-framework,Zend Framework,为什么此代码会产生此错误 函数_initviewershelpers() { $this->bootstrap('layout'); $layout=$this->getResource('layout'); $view=$layout->getView(); $view->doctype('XHTML1_TRANSITIONAL'); $view->headMeta()->appendHttpEquiv('Content-Type','text/html;charset=utf-8'); $v

为什么此代码会产生此错误

函数_initviewershelpers() { $this->bootstrap('layout'); $layout=$this->getResource('layout'); $view=$layout->getView(); $view->doctype('XHTML1_TRANSITIONAL'); $view->headMeta()->appendHttpEquiv('Content-Type','text/html;charset=utf-8'); $view->headTitle()->setSeparator('-'); $view->headTitle(“拉力吃角子老虎俱乐部”)

错误:


致命错误:在/volume1/web/LIBRERIE/ZendFrameworkCli/library/Zend/Auth/Adapter/DbTable.php:178堆栈跟踪:0/volume1/web/LIBRERIE/ZendFrameworkCli/library/Zend/Auth/Adapter/DbTable.php(140):Zend\u Auth\u Adapter\DbTable->setdbatapter(NULL)#1/volume1/web/gsb slot.it/application/Bootstrap.php(36):Zend_Auth_Adapter_DbTable->u构造(NULL)#2/volume1/web/LIBRERIE/ZendFrameworkCli/library/Zend/application/Bootstrap/BootstrapAbstract.php(667):Bootstrap->#initviewers()#3/volume1/web/LIBRERIE/ZendFrameworkCli/library/Zend/application/Bootstrap/Bootstrap/Bootstrap/Bootstrap.php(667):Zend_Application_Bootstrap_BootstrapAbstract->_executeResource('viewhelpers')#4/volume1/web/LIBRERIE/ZendFrameworkCli/library/Zend/Application/Bootstrap/BootstrapAbstract.php(584):Zend_Application_Bootstrap_Bootstrap->_Bootstrap(NULL)#5/volume1/web/LIBRERIE/ZendFrameworkCli/library/Zend/Application.php(355):Zend_Application_Bootstrap_Bootstra在/volume1/web/LIBRERIE/ZendFrameworkCli/library/Zend/Auth/Adapter/DbTable.php第178行,似乎您没有引导数据库。请尝试添加:

$this->bootstrap('db'); 
$this->bootstrap('db');