Example #1
0
 static function Call($class, $method, $globals, $param)
 {
     $objController = Controller::Load($class, $globals);
     //Se o metodo existir
     if (method_exists($objController, $method)) {
         //Retorna o resultado da função dentro do model
         return call_user_func_array(array($objController, $method), array($param));
     } else {
         //Metodo não localizado dentro do model
         throw new ControllerException("Method <strong>\"" . $method . "\"</strong> not found in Controller Object <strong>\"" . $class . "\"</strong>", 0x1001);
     }
 }