public function get($params) { $module = $this->controller_com_modulo && isset($param[0]) ? ucfirst(array_shift($params)) . "\\" : ''; $controller = isset($param[0]) ? ucfirst(array_shift($params)) : 'index'; $action = isset($param[0]) ? array_shift($params) : 'index'; $obj_controller = Helper\Factory::getController($module . $controller); return $obj_controller->get($action, ...$params); }
function index() { $user = Helper\Factory::getModel('user'); return $user->get(); }