codeigniter include css or js file
Why I can't in开发者_开发问答clude anything from views if it is inside application folder?
It is fine when I include in main dir:
This works:
<link rel="stylesheet" type="text/css" href="{ci_base_url}css/site.css" />
but this does not work:
<link rel="stylesheet" type="text/css" href="{ci_base_url}application/css/site.css" />
Why??
Thanks in advance
Only the content in what you called the "main dir" is directly accessible via http requests. That's for security reasons. Often that dir is named "public"
精彩评论