Commit f34d7064 by Alexander Makarov

Better phpdoc for AccessControl

parent a8d21805
...@@ -31,15 +31,17 @@ use yii\base\ActionFilter; ...@@ -31,15 +31,17 @@ use yii\base\ActionFilter;
* 'class' => \yii\web\AccessControl::className(), * 'class' => \yii\web\AccessControl::className(),
* 'only' => array('create', 'update'), * 'only' => array('create', 'update'),
* 'rules' => array( * 'rules' => array(
* // deny all POST requests
* array(
* 'allow' => false,
* 'verbs' => array('POST')
* ),
* // allow authenticated users * // allow authenticated users
* array( * array(
* 'allow' => true, * 'allow' => true,
* 'roles' => array('@'), * 'roles' => array('@'),
* ), * ),
* // deny all * // everything else is denied
* array(
* 'allow' => false,
* ),
* ), * ),
* ), * ),
* ); * );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment