Skip to content

Instantly share code, notes, and snippets.

@phpnode
Created July 26, 2011 10:18
Show Gist options
  • Save phpnode/1106439 to your computer and use it in GitHub Desktop.
Save phpnode/1106439 to your computer and use it in GitHub Desktop.
/**
* 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