我做了很多挖掘该问题的解决方案,无法找到解决方案。将元数据保存到metadataCache失败
问题: 我有一个Zend Framework 1.10.7应用程序运行在终端上,并通过Web界面。当它运行在Web上它完美的作品,但是当我通过命令行运行它,它不断给我一个错误
注意:无法保存元数据metadataCache
我看着其他各种主题,包括Accessing the Zend Application Bootstrap _init Functions After Bootstrapping,我仍然无法解决问题,因为我真的无法追踪那里发生的事情。这似乎是同样的问题,但我不明白该怎么做。
请问有人能帮我解决这个问题吗?
这里是我有什么基本的:
引导
protected function _initRouter()
{
if (PHP_SAPI == 'cli') {
$this->bootstrap('frontcontroller');
$front = $this->getResource('frontcontroller');
$front->setRouter(new PP_Tasks_Init());
//$front->setRequest(new Zend_Controller_Request_Simple());
}
}
'PP_Tasks_Init()'实际上是一个路由器,它出现'Zend_Controller_Router_Abstract' –