Ahsan
Ahsan

Reputation: 85

Root path for CSS and images

I am trying to configure CakePHP 1.3 on WAMPserver.

The problem is that my CSS is not found at localhost://dreamdeal/css/generic.css.

How can I set the root path in my webroot/index.php?

I set this path as

if (!defined('CAKE_CORE_INCLUDE_PATH')) {
        define('CAKE_CORE_INCLUDE_PATH', 'C:' . DS . 'wamp' . DS . 'www' . DS . 'dreamdeal' );
}

but that did not fix the error.

Upvotes: 0

Views: 387

Answers (1)

toxicate20
toxicate20

Reputation: 5410

Please look at the documentation for the folder structure from CakePHP. If you want to use CSS, the folder for that needs to be in the Cake webroot/ folder. It should not be on your localhost root path.

Upvotes: 1

Related Questions