标签:blog os io ar cti div log c
public function filters() { return array( ‘accessControl‘, // per ‘postOnly + delete‘, // ); } public function accessRules() { return array( array(‘allow‘, // allow all users to pe ‘actions‘=>array(‘index‘,‘view‘), ‘users‘=>array(‘*‘), ), array(‘allow‘, // allow authenticated us ‘actions‘=>array(‘create‘,‘update‘), ‘users‘=>array(‘@‘), ), array(‘allow‘, // allow admin user to pe ‘actions‘=>array(‘admin‘,‘delete‘), ‘users‘=>array(‘admin‘), ), array(‘deny‘, // deny all users ‘users‘=>array(‘*‘), ), ); }
(yii学习笔记)控制器权限控制,布布扣,bubuko.com
标签:blog os io ar cti div log c
原文地址:http://www.cnblogs.com/zixueit/p/3891897.html