I have this strange error in FuelPHP - I can not access asset files. When I type URL like this:
http://localhost/assets/js/jquery.js
I am redirected to root controller (as defined as _root_
) in config/routes.php
. It is very strange, I cannot access any assets (css, js, img). It has probably nothing to do neither with .htaccess
nor with web.config
files because this error remain even after these files are deleted and I have not modified them since install.
For debug purpose I even created controller with name Assets
to see if I can route to js
action by calling localhost/assets/js
but it is not working. Assets controller is ignored and root controller
is executed instead. It is very strange because other controllers are
working as expected.
I run php in cli with document root set to [project_folder]/public
. I can only load external assets for now but I need help so I can include my own stylesheet and scripts...
Can you see the problem or at least help me with debug? I'm clueless now...
It looks like you're new here. If you want to get involved, click one of these buttons!