Welcome Guest, Not a member yet? Register   Sign In
Model, View, or Controller, which order?
#1

[eluser]Unknown[/eluser]
In which order do you create those files?
#2

[eluser]WanWizard[/eluser]
There is no specific order, it all depends on the way you like to develop.

I usually start with controllers and views, where the controllers contain the basic control logic needed for the method, including model calls. The models at that point return dummy data, and the view contains static HTML. After I'm happy with the prototype (or my customer is), I start adding model code, additional controller code if needed, and display logic in the view.
#3

[eluser]InsiteFX[/eluser]
Before thinking about that you should be thinking what problem am I trying to solve!

Take the big problem and keep breaking it down into smaller problems until it makes no sense to break it down any more.

This will allow you to manage what you are trying to do.

This will then give you a plan for how your application will work and were things should go.

Controllers - are like switchboards for handling commands.
Models - for handling the database and business logic of the application.
Views - for display the information to the user.

InsiteFX




Theme © iAndrew 2016 - Forum software by © MyBB