Reputation: 129
Why all css files and images are not getting loaded in cakephp. Although i've written code like this in my default.ctp
echo $html->css('generic');
Please help me in this issue..
css files are placed in app\webroot\css
Upvotes: 0
Views: 3110
Reputation: 613
Try this changes.In Apache config File
1.LoadModule rewrite_module modules/mod_rewrite.so (Enable This Line) by removing #.Next Step is
2.Replace This Code “AllowOverride None” By “AllowOverride All”.
Upvotes: 1
Reputation: 1043
You have to copy the .htaccess file into your htdocs/yourcakeproject/
directory.
If you're running your Cake application on an Apache webserver you have to make sure that the module mod_rewrite is installed.
If you use Lighttpd as your webserver, there is a chapter in the CakeBook how you have to configure Lighttpd: Pretty-URLs-and-Lighttpd.
Upvotes: 4