Skip to content

Instantly share code, notes, and snippets.

@andruu
Created January 23, 2013 16:22
Show Gist options
  • Save andruu/4609024 to your computer and use it in GitHub Desktop.
Save andruu/4609024 to your computer and use it in GitHub Desktop.
protected function resolveAction ($action, $method = 'GET') {
$this->action = $action;
parent::resolveAction($action, $method);
}
public function before () {
if ($this->action == 'your_action_here') {
// do stuff
} else {
// do other stuff
}
parent::before();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment