Welcome Guest, Not a member yet? Register   Sign In
Where to put js/css/html code? A poll.
#1

[eluser]Bramme[/eluser]
Hi guys

I'm working on a really modular app, but I'm struggling a bit with semantics.

I have two options: I put everything (generation of javascript code, css styles, the html) in one library with functions like get_html(), get_css()... or I spread it out over multiple files, having separate .js and .css files in an assets folder, putting all the html in a separate view...

I prefer the second method way more, because I feel that's the way you're supposed to work and how CI intends you to do things. However, it won't be really developer friendly when I want to add a new module (instead of adding one file; I have to add multiple files, divided over multiple folders). Which do you prefer and do you have any tips?




Theme © iAndrew 2016 - Forum software by © MyBB