Exemplo n.º 1
0
 public function process_request($request)
 {
     // handle Flash system should initialized before any others
     // so we clean here
     // TODO do we need ajax request check before clean flash?
     mfFlash::getInstance()->clean();
     return $request;
 }
Exemplo n.º 2
0
 /**
  * Get Magic View Vars
  *
  * @return array
  */
 public function getMagicViewVars()
 {
     $magic_vars = array('mf_flash' => mfFlash::getInstance(), 'mf_request' => mfRequest::getInstance(), 'mf_user' => mfUser::getInstance());
     return $magic_vars;
 }