我想在WAMPserver上配置CakePHP 1.3。CSS和圖像的根路徑
問題是我的CSS沒有在localhost://dreamdeal/css/generic.css
找到。
如何在我的webroot/index.php
中設置根路徑?
我設置路徑
if (!defined('CAKE_CORE_INCLUDE_PATH')) {
define('CAKE_CORE_INCLUDE_PATH', 'C:' . DS . 'wamp' . DS . 'www' . DS . 'dreamdeal');
}
但沒有修復錯誤。
首先,'localhost'是[host](http://wiki.answers.com/Q/Which_part_is_the_host_of_URL_address),而不是[protocol](https://en.wikipedia.org/wiki/URI_scheme) 。 – user2428118