Why can't view files called by codeIgniter framework be linked to external CSS style files?

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.