Welcome Guest, Not a member yet? Register   Sign In
CI and MVC Best Practices (site structure, etc.)
#1

[eluser]MCrittenden[/eluser]
I just started using/learning CI about a week ago. I've found that there's a wealth of information about how to use it and how to get things done, but not much on the best way to do them.

I think a topic like this deserves a page in the user guide or something like that. It's easy for CI newcomers to get into bad habits just because they can't find anywhere to tell them how they should be doing things.

For example, here are a few questions I've come across so far.
- Where should js/css/image folders go? In the site root or somewhere in the application directory?
- Is it considered bad practice to put a function definition in a view, or sometimes acceptable, as Jim O'Halloran says?
- Is there an easy way to tell which functions belong in the model and which belong in the view?
- Is it always bad practice for a model to load a view?
- Are there any database/table/property naming conventions for CI that I should be following?
- What makes something a library as opposed to a helper or vise versa?

Any help would be appreciated. I am LOVING the what CI gives me, I just want to make sure I'm using it in the best way possible. Thanks guys.


Messages In This Thread
CI and MVC Best Practices (site structure, etc.) - by El Forum - 05-21-2008, 04:15 PM
CI and MVC Best Practices (site structure, etc.) - by El Forum - 05-21-2008, 06:27 PM
CI and MVC Best Practices (site structure, etc.) - by El Forum - 05-21-2008, 07:45 PM
CI and MVC Best Practices (site structure, etc.) - by El Forum - 05-21-2008, 08:35 PM



Theme © iAndrew 2016 - Forum software by © MyBB