Example #1
0
 /**
  * POST: /account/logoff
  */
 public function logoffPost()
 {
     Authentication::signOut();
     $args = explode('/', $_REQUEST['Url']);
     unset($args[0]);
     parent::redirectToUrlFromArray($args);
 }
Example #2
0
 /**
  * @param $args
  * GET: /misc/theme
  */
 public function theme($args)
 {
     Theme::setTheme($args[0]);
     unset($args[0]);
     parent::redirectToUrlFromArray($args);
 }