开发者

In an external assets folder the best place to put libraries for CodeIgniter 2.x?

开发者 https://www.devze.com 2023-04-08 13:03 出处:网络
when I last used CodeIgniter it was version 1.x and I read an external assets folder for css, js, and images was the best way to handle things.开发者_Python百科I wanted to know if that is the correct

when I last used CodeIgniter it was version 1.x and I read an external assets folder for css, js, and images was the best way to handle things. 开发者_Python百科I wanted to know if that is the correct way to do things in 2.x. I found this on SO but it didn't address it directly:

Assets in codeigniter

The other SO entries were too old to address 2.x.

Thank you.


As long as they are both publicly accessible then there is no difference between

application
    ...
system
    ...
assets
    css
        style.css
    images
        image.png

and

application
    ...
system
    ...
css
    style.css
images
    image.png

Depending on your .htaccess file you may need to make a change but CodeIgniter doesn't require you to use any specific scheme for storing assets.

0

精彩评论

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