所以我有这个在我的index.php:了Zend_Session未捕获的异常
Zend_Session::start();
然后在我的init方法控制器的一个我做的:
if (false === isset($this->defaultNamespace->tree)) {
$this->defaultNamespace->tree = array();
}
仍然有效。但随后在同一个控制器的动作我写这篇文章:
unset($this->defaultNamespace->tree); // I tried commenting this line
$this->defaultNamespace->tree = $this->tree;
而且我得到这样一个例外:
<br />
<b>Fatal error</b>: Uncaught exception 'Zend_Session_Exception' with message 'Zend_Session::start() - D:\data\o\WebProjects\elearning\public\index.php(Line:22): Error #2 include() [<a href='function.include'>function.include</a>]: Failed opening 'SlideQuestion.php' for inclusion (include_path='D:\data\o\WebProjects\elearning/../../library;D:\data\o\WebProjects\elearning/application/../library;.;C:\php\pear;D:\data\o\WebLib\ZendFramework\library;') Array' in D:\data\o\WebLib\ZendFramework\library\Zend\Session.php:493
Stack trace:
#0 D:\data\o\WebProjects\elearning\public\index.php(26): Zend_Session::start()
#1 {main}
thrown in <b>D:\data\o\WebLib\ZendFramework\library\Zend\Session.php</b> on line <b>493</b><br />
的$这个 - >树是一种属性包含某些对象的数组。它。
没有那是肯定没有问题。当我注释行$ this-> defaultNamespace-> tree = $ this-> tree;一切正常。我可以做var_dump($ this-> tree)并且一切正常。 – 2010-07-09 12:59:56