Hello friends

As you know, the way to manage the code that you write, is very importnant.
By manage, I mean that you have a good way to know where to control the core of the project, the objects' act, and managing separating view from object core.

As I've reasearched, the best (and one of the most popular) way to go is MVC (Model, View, Control).

I think I've got what each one is, and does, but don't really know how to WRITE the framework using MVC.

The simplest manual code (the shortest article!!!) is this but I don't still understand what it exactly does.

Do you know any manual and simple (I just want them to be understandable, and work. I will extend it myself according to my later and more proffessional needs)?

Other manual MVC PHP frameworks I've found on the net:
http://www.phpro.org/tutorials/Model-View-Controller-MVC.html
http://www.onlamp.com/pub/a/php/2005/09/15/mvc_intro.html

Thank you, and sorry for my bad english!

The first article you posted has a very concise description of this layout. It describes the class architecture you will use (study object oriented programming in PHP), including the use of abstract, super, and sub classes. It also defines the most common and most helpful methods to define for each class. For the purpose of actual coding, these are the basic things you need to know:

Model: SQL functions. Learn SQL itself and the PHP functions for working with your database of choice (ie. MySQL, Oracle, whatever).

View: Templates, optionally

Controller: OOP concepts should cover it as this just connects the other two classes in a logical manner.

And definitely look at the sample architecture for download at the bottom of that page.

As I said, take a look at the sample architecture for download. It will give you something to model your own code after.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.