public function get($route_name) {
    $route = null;

    if(!array_key_exists($route_name, $this->routes))
      echo "Router: error: the array key $route_name doesn't exists.<br />";
    else { 
      $route_infos = $this->routes[$route_name];
      
      if($route_controller = $this->instancy_controller($route_infos[1])) {
        $route = array($route_controller, $route_infos[2]);
      }
    }
   
    return $route;
  }
public function get($route_name) {
    $route = null;

    if(!array_key_exists($route_name, $this->routes))
      echo "Router: error: the array key $route_name doesn't exists.<br />";
    else { 
      $route_infos = $this->routes[$route_name];
      
      if($route_controller = $this->instancy_controller($route_infos[1])) {
        $route = array($route_controller, $route_infos[2]);
      }
    }
   
    return $route;
  }
public function get ( $ route_name ) { $ route = null ; if ( ! array_key_exists ( $ route_name , $ this -> routes ) ) echo "Router: error: the array key $route_name doesn't exists.<br />" ; else { $ route_infos = $ this -> routes [ $ route_name ] ; if ( $ route_controller = $ this -> instancy_controller ( $ route_infos [ 1 ] ) ) { $ route = array ( $ route_controller , $ route_infos [ 2 ] ) ; } } return $ route ; }
returns the controller with 'route_name'
returns the controller with route_name