定义common文件时里面没法用session只能用$_SESSION。。。看文档又说session是可以替代后者使用的。。。
Class CommonAction extends Action{
Public function _initialize(){
if(!isset(session['uid'])) $this->redirect(GROUP_NAME . '/Login/index');
}
}报错如下:Cannot use isset() on the result of an ex
最佳答案