Welcome Guest, Not a member yet? Register   Sign In
MVC Best Practices
#1

[eluser]eldrinofsoalim[/eluser]
Hi!

Can anyone refer me to guides, screencasts, articles, threads about Model-View-Controller Best Practices?

Basically I'm starting out in PHP and I've chosen Code Igniter as a terrific start especially for a beginner like me. I've understood that models handle the database CRUD, views handle the UI and controller serves as an intermediary between them.

But I'm having confusion on how to ORGANIZE all three.

Here are a few of my concerns:
1) What's the general rule on when you should create new controllers?
2) How should you organize controllers? Should you put controllers in a folder under the controller folder?
3) What's the proper way of creating an admin-member-public website? How do you organize the views and the controllers?
4) Do you really need only one model for all the website needs? I've read that only one model is really needed?
5) Tips for naming conventions?

As you can see, my questions are very very very amateur/noob/novice. But I hope you can see my willingness to learn.

Please refer to me articles or guides or screencasts or threads that have talked about these extensively, especially for beginners. I want to learn the FUNDAMENTALS.

Maybe from my post, you can infer what kind articles I also need to learn?

Looking for more mentors through this Forum,
eldrinofsoalim


Messages In This Thread
MVC Best Practices - by El Forum - 04-11-2011, 05:33 PM
MVC Best Practices - by El Forum - 04-12-2011, 02:47 AM
MVC Best Practices - by El Forum - 04-13-2011, 04:07 PM



Theme © iAndrew 2016 - Forum software by © MyBB