Bläddra i källkod

Fixing paths, configuration.php now returns an array.

Julio Montoya 11 år sedan
förälder
incheckning
554ec1e1c0
3 ändrade filer med 8 tillägg och 6 borttagningar
  1. 4 3
      config/configuration.dist.php
  2. 3 2
      config/routing.yml
  3. 1 1
      web/index.php

+ 4 - 3
config/configuration.dist.php

@@ -25,6 +25,8 @@
 /**
  * Database settings
  */
+$_configuration = array();
+
 // Host.
 $_configuration['db_host']     = '{DATABASE_HOST}';
 // Port.
@@ -39,9 +41,6 @@ $_configuration['db_driver']   = '{DATABASE_DRIVER}';
 $_configuration['main_database'] = '{DATABASE_MAIN}';
 
 /** Directory settings */
-// URL to the root of your Chamilo installation, e.g.: http://www.mychamilo.com/
-// Comment this line if you want to enable multiple URLs
-$_configuration['root_web']    = '{ROOT_WEB}';
 
 /** Chamilo will automatically manage the following paths */
 
@@ -159,3 +158,5 @@ $_configuration['platform_charset']  = 'utf-8';
 // Show a useful toolbar with memory used, loaded time, request, session, logs information.
 $_configuration['show_profiler']     = false;
 $_configuration['name_order_conventions'] = array();
+
+return $_configuration;

+ 3 - 2
config/routing.yml

@@ -6,12 +6,13 @@ secured_logout:
 
 logout:
     pattern:   /secured/logout
+
 home:
-    path:      /home
+    path:      /
     defaults:  { _controller: index.controller:indexAction, culture: en }
 
 homepage:
-    path:      /homepage
+    path:      /
     defaults:  { _controller: index.controller:indexAction, culture: en }
 
 example:

+ 1 - 1
web/index.php

@@ -12,7 +12,7 @@ require_once __DIR__.'/../vendor/autoload.php';
 /**
  * Inclusion of main setup script
  */
-$app = require_once '../main/inc/global.inc.php';
+$app = require_once __DIR__.'/../src/ChamiloLMS/app.php';
 
 /**
  * In order to execute Chamilo, you need to call the $app->run() method.