Skip to content

Commit

Permalink
modified cake/console/templates/skel for Built-in web server
Browse files Browse the repository at this point in the history
  • Loading branch information
shin1x1 committed Dec 4, 2011
1 parent 9cbc301 commit 0a3791b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cake/console/templates/skel/webroot/index.php
Expand Up @@ -73,6 +73,9 @@
define('CORE_PATH', CAKE_CORE_INCLUDE_PATH . DS);
}
}
if (php_sapi_name() == 'cli-server') {
$_SERVER['PHP_SELF'] = '/'.basename(__FILE__);
}
if (!include(CORE_PATH . 'cake' . DS . 'bootstrap.php')) {
trigger_error("CakePHP core could not be found. Check the value of CAKE_CORE_INCLUDE_PATH in APP/webroot/index.php. It should point to the directory containing your " . DS . "cake core directory and your " . DS . "vendors root directory.", E_USER_ERROR);
}
Expand Down

0 comments on commit 0a3791b

Please sign in to comment.