【发布时间】:2012-04-04 09:04:37
【问题描述】:
我想将特定用户的调试级别设置为 2。如果我使用 app_controller.php 使 DebugKit 不显示,只有我在 core.php 中设置它但我只想这样做一个特定的登录用户。
最好的方法是什么?
更新: 这是我在 app_controller.php 中的 beforeFilter 函数中所做的(没有用):
if($this->Auth->user('id') == 1)
Configure::write('debug', 2);
【问题讨论】:
标签: cakephp cakephp-1.3