O'Reilly logo

Learning FuelPHP for Effective PHP Development by Ross Tweedie

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Models, views, and controllers

No look at the architecture would be complete without mentioning the model-view-controller (MVC) design pattern. If you have written PHP before, or looked at any of the other numerous frameworks out there, you would have heard of the MVC pattern. It allows the logical separation of code. The controller handles the logic while the model ensures the consistency of data and also performs the interaction with the data store. The view presents the results of the controller and model to the user. So far, so good; why mention the MVC pattern? Well, FuelPHP introduces the ViewModel and some base classes to give you a head start on your project.

Views and ViewModels

Views are stored in the views folder within the app folder, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required