From 0a3791bc2cfa90697313adaf08685001b51cc96a Mon Sep 17 00:00:00 2001 From: shin1x1 Date: Mon, 5 Dec 2011 01:49:46 +0900 Subject: [PATCH] modified cake/console/templates/skel for Built-in web server --- cake/console/templates/skel/webroot/index.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cake/console/templates/skel/webroot/index.php b/cake/console/templates/skel/webroot/index.php index 5b5c9870975..baf6741b68a 100644 --- a/cake/console/templates/skel/webroot/index.php +++ b/cake/console/templates/skel/webroot/index.php @@ -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); }