在哪里应该有人把静态文件,如CS,JS和图像在Codeigniter文件夹结构? [英] Where should someone put the static files such as CS, JS and images in the Codeigniter folder structure?
本文介绍了在哪里应该有人把静态文件,如CS,JS和图像在Codeigniter文件夹结构?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
基本上在html文件中,我想包括如下静态文件:
Basically in the html file, I would like to include static files as follows:
<link href='css/my.css' type="text/css"/>
<link href='js/my.js' type="text/javascript"/>
...
<img src="image/logo.jpg" />
为了完成我上面所说的,那些静态文件需要放在Codeigniter文件夹结构体。
In order to accomplish what I stated above, where should those static files need to go in the Codeigniter folder structure.
推荐答案
这里没有真正的答案,但我使用CI项目的最佳实践是以下结构:
There's no real answer here, but what I use as best practice for CI projects is the following structure:
- assets
-- css
-- js
-- images
- system
-- <all CI folders here>
这篇关于在哪里应该有人把静态文件,如CS,JS和图像在Codeigniter文件夹结构?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文