<?php


/**
 *
 */
class Controller
{
  private $name;
  private $params;

  function __construct( $route_name, $route_params )
  {
    $this->name = $route_name;
    $this->params = $route_params;
  }

  public function run ()
  {
    global $params;

    $params = $this->params;
    $controller_path = CONTROLLERS . $this->name . 'Controller.php';

    if ( file_exists($controller_path) ) include($controller_path);
  }


}
