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()
{
return array(
'beforeAction' => 'beforeFilter',
'afterAction' => 'afterFilter',
Controller::EVENT_BEFORE_ACTION => 'beforeFilter',
Controller::EVENT_AFTER_ACTION => 'afterFilter',
);
}

Loading…
Cancel
Save