Browse Source

Use class constants for Event declatration in ActionFiler

tags/2.0.0-beta
Carsten Brandt 12 years ago
parent
commit
2f051e9dab
  1. 4
      framework/yii/base/ActionFilter.php

4
framework/yii/base/ActionFilter.php

@ -30,8 +30,8 @@ class ActionFilter extends Behavior
public function events() public function events()
{ {
return array( return array(
'beforeAction' => 'beforeFilter', Controller::EVENT_BEFORE_ACTION => 'beforeFilter',
'afterAction' => 'afterFilter', Controller::EVENT_AFTER_ACTION => 'afterFilter',
); );
} }

Loading…
Cancel
Save