4

I am trying to load css in codeigniter my css load code is-

 <link href="<?php echo base_url();?>css/home.css" rel="stylesheet">

and i did in my autoload.php file

$autoload['helper'] = array('url','html');

But still not able to load Css.

My folder path is Myproject/application/css

where i am making mistake please let me know.

Thanks

3
  • 3
    Your css folder should not reside inside the application folder. Put it on the same level as the application folder and your css will load. Commented Mar 25, 2015 at 9:04
  • Try putting everything outsite the application/ folder Commented Mar 25, 2015 at 9:04
  • 1
    Bring 'CSS' folder at the same level your 'application' folder is present Commented Mar 25, 2015 at 11:53

1 Answer 1

3

your Css folder path should be like

Myproject/css

put it in same level of application folder.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.