index.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. /**
  4. * Classic global.inc.php file now returns a Application object
  5. * Make sure you read the documentation/installation_guide.html to learn how
  6. * to configure your VirtualHost to allow for overrides.
  7. */
  8. /**
  9. * Inclusion of main setup script
  10. */
  11. $app = require_once '../main/inc/global.inc.php';
  12. /**
  13. * In order to execute Chamilo, you need to call the $app->run() method.
  14. * This method renders a page depending of the URL, for example when entering
  15. * to "/web/index" Chamilo will call the controller "IndexController->indexAction()". This is
  16. * because a router was assigned in the router.php file
  17. *
  18. * $app->get('/index', 'index.controller:indexAction')->bind('index');
  19. *
  20. * The "index.controller:indexAction" string is transformed (due a
  21. * controller - service approach) into the method:
  22. * ChamiloLMS\Controller\IndexController->indexAction() see more
  23. * at: http://silex.sensiolabs.org/doc/providers/service_controller.html
  24. * The class is loaded automatically (no require_once needed) thanks to the
  25. * namespace ChamiloLMS added in Composer.
  26. * The location of the file is src\ChamiloLMS\Controller\IndexController.php
  27. * following the PSR-1 standards.
  28. */
  29. /** @var \Silex\Application $app */
  30. $app->run();
  31. //$app['http_cache']->run();