index.php 1.2 KB

123456789101112131415161718192021222324252627282930313233
  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 a call to $app->run().
  14. * $app->run(); shows a page depending of the URL for example when entering
  15. * in "/web/index"
  16. * Chamilo will render the controller IndexController->indexAction(). This is
  17. * because a router was assigned at the end of global.inc.php:
  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
  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 Application */
  30. $app->run();
  31. //$app['http_cache']->run();