Browse Source

Better phpdoc for AccessControl

tags/2.0.0-beta
Alexander Makarov 11 years ago
parent
commit
f34d7064ea
  1. 10
      framework/yii/web/AccessControl.php

10
framework/yii/web/AccessControl.php

@ -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
* ),
* ),
* );

Loading…
Cancel
Save