コード例 #1
0
ファイル: router.class.php プロジェクト: vituhugo/webservice
 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);
 }
コード例 #2
0
 function index()
 {
     $user = Helper\Factory::getModel('user');
     return $user->get();
 }