Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

moved applications settings

  • Loading branch information...
commit 25a3c75a7b555b832448042fddc9d681535465c2 1 parent 44d8313
Federico authored
Showing with 5 additions and 6 deletions.
  1. +1 −5 config/config.php
  2. +4 −1 public/index.php
View
6 config/config.php
@@ -1,8 +1,4 @@
<?php
-// Application settings
-define('ROOT_DIR', realpath(dirname(__FILE__) . '/../'));
-define('APP_DIR', ROOT_DIR . '/app');
-
// Error reporting level
define('DEBUG', true);
if (DEBUG) {
@@ -38,7 +34,7 @@
require_once APP_DIR . '/controllers/Controller.php';
// Include path
-set_include_path(ROOT_DIR . '/models' . PATH_SEPARATOR . ROOT_DIR . '/library');
+set_include_path(ROOT_DIR . '/library' . PATH_SEPARATOR . APP_DIR . '/models');
spl_autoload_register(array('Loader', 'autoload'));
View
5 public/index.php
@@ -1,5 +1,8 @@
<?php
-require_once dirname(__FILE__) . '/../config/config.php';
+define('ROOT_DIR', realpath(dirname(__FILE__) . '/../'));
+define('APP_DIR', ROOT_DIR . '/app');
+
+require_once ROOT_DIR . '/config/config.php';
try {
$request = new Request();
Please sign in to comment.
Something went wrong with that request. Please try again.