Friday, March 19, 2010

[CakePHP] debug mode under conditions

在php檔最前面開debug mode的方法

/app/config/core.php限用
    Configure::write('Session.save', 'php');

session使用php的機制,不是cake或database


session_start();

if ($_SESSION['userid']==51489) {
    Configure::write('debug', 3);
}

No comments: