Skip to content

Commit

Permalink
Updated index.php to use recent changes (app\ENV, files autoload) in …
Browse files Browse the repository at this point in the history
…phpish/app.
  • Loading branch information
sandeepshetty committed May 5, 2014
1 parent b50a3e5 commit f28a66b
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions index.php
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
<?php


define('APPLICATION_ENV', preg_match('/^127\.0\.0\.1.*/', $_SERVER['HTTP_HOST']) ? 'development' : 'production');
require __DIR__.'/conf/'.APPLICATION_ENV.'.conf.php';

require __DIR__.'/vendor/phpish/app/app.php';
require __DIR__.'/vendor/phpish/mysql/mysql.php';
require __DIR__.'/vendor/phpish/template/template.php';

require __DIR__.'/vendor/autoload.php';

use phpish\app;
use phpish\mysql;
use phpish\template;

require __DIR__.'/conf/'.app\ENV.'.conf.php';


app\get('.*', function (){
return 'Hello World';
Expand Down

0 comments on commit f28a66b

Please sign in to comment.