Css and js files are not loaded in Cakephp 2?


#1

Hai,

I downloaded live server files to local server. I deleted .htaccess then load it but js and css files are not loaded. what i did mistake, please help me to solve this.

Thanks advance.


#2

Do you have errors on your browser developer tools? That is the first thing to check


#3

I have blank page, Check in inspect console CSS, JS file goes in 404 error page.


#4

And are they pointing to the right url?


#5

On the root of the project open te file index.php. You will fine on line 30 something like this:

define(‘WWW_ROOT’, ROOT . DS . APP_DIR . DS . WEBROOT_DIR . DS);

check if webroot route is OK.