0
I set up a CI system that uses template schema, with header, navmenu, template (component) and footer.
I use the Foundation for styling.
The problem is this: when accessing a simple route, such as home, I have no errors, but when accessing a route as user/new the page loses the reference, because the links to css, js and images, which are with relative link, are pointing to a user/ subdirectory because the system thinks it is inside this directory, but it does not exist, it is just a controller.
This does not happen with standard (index) controller methods, only when I try to access another method via the controller/method combination in the url.
Someone knows this mistake and how to fix it?
Yes, the . htaccess is configured. I did a test with base_url() and it fixes, but what I don’t understand is why the sitema understands the path as directory.
– Plinio Mabesi