Commit f34d7064 by Alexander Makarov

Better phpdoc for AccessControl

parent a8d21805
......@@ -31,15 +31,17 @@ use yii\base\ActionFilter;
* 'class' => \yii\web\AccessControl::className(),
* 'only' => array('create', 'update'),
* 'rules' => array(
* // deny all POST requests
* array(
* 'allow' => false,
* 'verbs' => array('POST')
* ),
* // allow authenticated users
* array(
* 'allow' => true,
* 'roles' => array('@'),
* ),
* // deny all
* array(
* 'allow' => false,
* ),
* // everything else is denied
* ),
* ),
* );
......
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