Home >php教程 >php手册 >dwz-1.4.6 和Thinkphp3.2.2整合

dwz-1.4.6 和Thinkphp3.2.2整合

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-07 11:41:231327browse

只修改Thinkphp/Think/Controller.class.php.
各位兄弟,帮着修改!看看不用修改Thinkphp就能用!
"__DWZ__"放到config.php中去了.
还是使用囚鸟先生的代码,去除了getActionName().

/**
* Dwz系统用到参数 ajax赋值扩展
* @access protected
* @param array $result 引用传值
* @author 囚鸟先生
* @return void
*/
protected function ajaxAssign(&$result) {
$result['statusCode'] = $result['status'];
$result['navTabId'] = $_REQUEST['navTabId'];
$result['message'] = $result['info'];
}
protected function ajaxReturn($data, $type = '') {
//囚鸟先生
if (method_exists($this, "ajaxAssign"))
$this->ajaxAssign($data); //ajax赋值扩展

附件 dwz_tp321_mysql.rar ( 6.13 MB 下载:208 次 )

AD:真正免费,域名+虚机+企业邮箱=0元

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn