Example #1
0
 public function run()
 {
     if ($this->router->routeExists($this->request->method, $this->request->uri)) {
         $actionClass = $this->router->getClass($this->request->method, $this->request->uri);
         $action = new $actionClass($this->request);
         $action->run();
     } else {
         echo 'not found :(';
     }
 }