Why can't the view file called by the codeIgniter framework be linked to an external CSS style file? I just learned CodeIgniter. today, after calling the view by the controller, I found that if the external CSS files referenced by the view file do not work in the view file the style is effective. what is the reason? could you please advise CodeIgniter to reference external CSS files? the simpler the method is, the better? it's too complicated to understand? for example, Controller $ this-why the view file called by codeIgniter framework cannot be linked to external files? CSS style file
I just learned CodeIgniter. today, after calling the view with a controller, I found that if the external CSS files referenced by the view file do not have any effect on the style inside the view file, it will have an effect. what is the reason? please advise CodeIgniter to reference the external the simpler the CSS file method, the better. it's too complicated to understand.
For example, Controller $ this-> load-> view ('AA. php ');
View file aa. php Code
There is also a style1.css style file in the visual file. after running the controller, the style sheet is useless.
------ Solution --------------------
Location error. all relative paths are relative to index. php under the root directory of the website.
All single-entry frameworks are like this.