Causes and Solutions of failure to load css and js files in the phpci framework ,. The cause and solution of css and js file loading failure in phpci framework fail. when html pages are integrated into the ci framework, loading css and js fails, after half a day, I found that the ci framework is the entrance box. the reasons for failure to load css and js files in the php ci framework and the solution are as follows,
When integrating html pages into the ci framework, loading css and js failed. after half a day, I found that the ci framework is the portal framework,
All requests to files in the framework must be processed by index. php. when loading external css and js files
Use the base_url () function to process external links.
For example:
In the config configuration file, the base_url is: "localhost: 8080/project name /"
Access the application/resource/aaa. js file in the controller
Relative path