Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

兼容trace #2

Open
BedBear opened this issue Apr 8, 2015 · 3 comments
Open

兼容trace #2

BedBear opened this issue Apr 8, 2015 · 3 comments

Comments

@BedBear
Copy link

BedBear commented Apr 8, 2015

在输出后面加上exit(); 应该就可以防止trace信息输出了吧

//ueditor编辑器配置
public function ueditor(){
$data = new \Org\Util\Ueditor();
echo $data->output();
exit(); // 防止调试信息输出
}

@hxsf
Copy link

hxsf commented Apr 18, 2015

也可以调用C方法临时关闭本页面trace;
public function ueditor(){
C('SHOW_PAGE_TRACE',false);
$data = new \Org\Util\Ueditor();
echo $data->output();
}

@findever
Copy link

findever commented Jun 1, 2015

应该使用$this->ajaxReturn( $data->output())进行返回比较妥当

@teacherpan
Copy link

经测试,在Ueditor.class.php的构造函数中,加入代如下代码可关闭trace,同时,不影响trace的使用。
//手动半闭trace防止json数据返回错误。
C('SHOW_PAGE_TRACE',false);
最后,谢谢作者的辛勤劳动。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants