YII 访问权限限制

对于不同用户的权限限定,可以使用accessRules()函数,在controller里面定义一个 accessRules()函数,像这样:public function accessRules(){return array(array('allow',  // allow all users to access 'index' and 'view' actions
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章