I have noticed a lot of examples in the forum are not using classes for every action rather than using methods.
Instead of
class product {
function view();
fuction insert();
function update();
}
They are using
class ProductInsert {
function execute();
}
A lot of the frameworks use the first example when implementing MVC.
My Questions:
1. Which is the correct way?
2. What are the advantages disadvantages?









Bookmarks