Created
July 26, 2011 10:18
-
-
Save phpnode/1106439 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Runs before the action | |
* @param CAction $action The action to be run | |
* @return boolean Whether to run the action or not | |
*/ | |
public function beforeAction($action) { | |
Yii::beginProfile("Run Action"); | |
return parent::beforeAction($action); | |
} | |
/** | |
* Runs after the action has completed | |
* @param CAction $action The action to be run | |
*/ | |
public function afterAction($action) { | |
Yii::endProfile("Run Action"); | |
return parent::afterAction($action); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment