开发者

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"

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜