使用zfdebug调试zend framework
来源:互联网 发布:霸刀战神翅膀升级数据 编辑:程序博客网 时间:2024/05/28 05:13
插件的名字叫ZFDebug-1.5
把zfdebug\library下面的文件夹ZFDebug拷贝到项目的library目录下面
写一个函数放在Bootstrap.php里面(适用于zend framework 1.8以上)
zfdebug官方下载地址:http://code.google.com/p/zfdebug/downloads/detail?name=ZFDebug-1.5.zip
打开页面有点久。
下面是函数
protected function _initZFDebug()
{
$autoloader = Zend_Loader_Autoloader::getInstance();
$autoloader->registerNamespace('ZFDebug');
$options = array(
'plugins' => array('Variables',
'File' => array('base_path' => APPLICATION_PATH),
'Memory',
'Time',
'Registry',
'Exception')
);
# Instantiate the database adapter and setup the plugin.
# Alternatively just add the plugin like above and rely on the autodiscovery feature.
if ($this->hasPluginResource('db')) {
$this->bootstrap('db');
$db = $this->getPluginResource('db')->getDbAdapter();
$options['plugins']['Database']['adapter'] = $db;
}
# Setup the cache plugin
if ($this->hasPluginResource('cache')) {
$this->bootstrap('cache');
$cache = $this-getPluginResource('cache')->getDbAdapter();
$options['plugins']['Cache']['backend'] = $cache->getBackend();
}
$debug = new ZFDebug_Controller_Plugin_Debug($options);
$this->bootstrap('frontController');
$frontController = $this->getResource('frontController');
$frontController->registerPlugin($debug);
}
- 使用zfdebug调试zend framework
- 使用zfdebug调试zend framework
- ZFDebug – 幫你診斷 Zend Framework 專案
- zend framework 使用firephp调试(转载自phpchina)
- Zend Framework使用实例
- Zend Framework使用实例
- Zend Framework 中的布局使用
- Zend Framework使用心得总结
- zend framework的使用(1)
- Zend Framework 中的布局使用
- Zend Framework 中的autoloading使用
- PHP Zend framework 配置与调试(一)
- PHP Zend framework 配置与调试(二)
- zend studio 13创建zend framework工程并用xdebug 调试zend framework
- 使用Zend Debugger + Zend Studio 调试web
- 使用zend studio开发zend framework应用的技巧
- Zend Framework教程-Zend的Model-基本规则和使用
- Zend Framework 视图中使用视图
- 评论:教父已死,创新焉附 整个IT业进入冬天?
- 读懂严蔚敏C语言数据结构需要弄清楚的N个C语言语法
- 后乔布斯时代真正来临 苹果股价上升恐更难
- 数据库中的日期格式
- 第五章 嵌入式系统中的IA架构
- 使用zfdebug调试zend framework
- 乔布斯逝世 Twitter充满悼念之词安息一路走好
- IE10 div居中不起作用之-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR
- 不再年轻,所以需要总结了
- 查询语句:查两个表中的某向个字段数据
- 第六章 嵌入式系统硬件设计-接口
- 乔布斯辞世 盖茨等朋友、对手纷纷表示怀念哀悼
- 常用数据库分类
- 苹果乔布斯辞世享年56岁 世界因他而变得美好