MVC is a software pattern for designing user interface systems such as web applications. Zend Framework is a set of highly-reliable software functions that provide commonly used low-level programming tasks so that Sweet Code does not have to write and maintain them.
Each type of business entity has a model such as Customer or Sales Order. The model is the one-stop-shop for of that type of entity. For example:
- PurchaseOrder->update( data )
Views are visual templates that determine how information is presented to the user. In our software, the view contains the HTML code for the web browser. For example, a view might describe how a list of sales orders appears to the user on a web page; the order of the columns etc.
Controllers accept the input from users and decide what to do in response and which models and views are required to get the job done. For example, a user might click an Update button on a Sales Order edit page and the Sales Order controller will use the Sales Order model to perform the update then display the newly updated order using the SalesOrderDetails view.