Ejemplo n.º 1
0
	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;
		}
	}
Ejemplo n.º 2
0
 public function before_filter(&$action, &$args)
 {
     parent::before_filter($action, $args);
 }
Ejemplo n.º 3
0
 function before_filter(&$action, &$args) {
     if(!$GLOBALS['perm']->have_perm('root')) throw new Studip_AccessDeniedException('Keine Berechtigung');
     parent::before_filter($action, $args);
 }