Improved action filter and action execution flow by supporting installing action filters at controller, module and application levels

This commit is contained in:
Qiang Xue
2014-04-04 23:30:59 -04:00
parent 104c4fc3ae
commit 50e338127d
11 changed files with 434 additions and 130 deletions

View File

@ -106,12 +106,8 @@ class Controller extends \yii\web\Controller
public function beforeAction($action)
{
$this->authenticate($action);
if (parent::beforeAction($action)) {
$this->checkRateLimit($action);
return true;
} else {
return false;
}
$this->checkRateLimit($action);
return parent::beforeAction($action);
}
/**