protected function before_filter() { parent::before_filter(); $this->check_something(); # controlo que este logueado para ingresar. switch($this->params['action']) { case 'index': case 'show': // do something break; case 'test': // do other stuff.. break; } }
public function before_filter(&$action, &$args) { parent::before_filter($action, $args); }
function before_filter(&$action, &$args) { if(!$GLOBALS['perm']->have_perm('root')) throw new Studip_AccessDeniedException('Keine Berechtigung'); parent::before_filter($action, $args); }