In my web application I want to disable access to pages via url even for authenticated users.How should I proceed? I googled it for tutorials but could not find one. How should I change my config/main.php file .Any body kindly help me how to resolve this issue.
1条回答 默认 最新
dongnang8192 2014-02-25 06:54关注Yii uses the
accessRules, wich are located in the controller, to determine if someone can visit a page or not. When created withGiithere are default rules for this. On this page page you can find more information about this subject. Basicly make sure that your action with restriction is in a list that also have this line:'users'=>array('admin'),Or, if you use RBAC do it role base:
'roles'=>array('admin', 'editor', ...),解决 无用评论 打赏 举报