关于Zend Zend_Registry的垃圾问题。
我在A Aciton中 放入了一个Key 如: Zend_Registry::set('index','This is loginAction');
然后我在B Aciotn里取,如: Zend_Registry::get('index')
然后就出这一异常了。
Fatal error: Uncaught exception 'Zend_Exception' with message 'No entry is registered for key 'index'' in /home/ZendFramework/library/Zend/Registry.php on line
这个??我无语了。。大神救命呀。。
------解决方案--------------------
先看看是否真的有这个东西。
$registry = Zend_Registry::getInstance();
foreach ($registry as $index => $value) {
echo "Registry index $index contains:\n";
var_dump($value);
}
建议还是放弃用Zend_Registry吧。
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号