Esempio n. 1
0
 public static function getController($module, $type, $child = false)
 {
     $pos = strrpos($module, '.');
     $action = substr($module, $pos + 1);
     //$classname = FN::i('controller.'.substr($module,0,$pos).'|'.$type);
     list($classname) = FN::parseName('controller.' . substr($module, 0, $pos) . '|' . $type);
     $function = 'get' . $type;
     //return $classname::$function($action,$child);
     return call_user_func_array(array($classname, $function), array($action, $child));
 }