Exemple #1
0
 public function go()
 {
     $route = new route();
     $path = $route->getRoute();
     $this->controll = $path['controll'] . 'Ctrl';
     $this->action = $path['action'];
     //加载控制器和方法
     include APP . '/controll/' . $this->controll . '.php';
     $c = new $this->controll();
     $c->{$this->action}();
 }