index.php 390 B

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