index.php 387 B

12345678910111213
  1. <?php
  2. //set_include_path('./');
  3. //require_once("../application/config/config.php");
  4. include __DIR__ . "/../application/config.php";
  5. include_once($path["controller"]);
  6. $request = $_SERVER['REQUEST_URI'];
  7. $params = explode('/', $request);
  8. // Here you should probably gather the rest as params
  9. // Call the action
  10. $controller = new Controller($params);
  11. ?>