What is a Presenter in FuelPHP?

devquora
devquora

Posted On: Feb 22, 2018

 

Presenter: A Presenter is a class that contains the logic that is needed to generate your view (or views). When the controller is done with your user input and is done with whatever actions it needed to take, it turns execution over to the Presenter to retrieve and process whatever data is needed for the view. A Presenter shouldn’t do any data manipulation but can contain database calls and any other retrieval or preparation operations needed to generate the View’s data.

Note: Presenters are optional. If you don’t need them, you can use Views directly, and keep the pre-processing logic in your controller.

Read More https://fuelphp.com/docs/general/presenters.html

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Fuel PHP interview questions

    What is the current Stable version of FuelPHP?

    What is the current Stable version of FuelPHP?..

    Fuel PHP interview questions

    What is the minimum requirement for installing FuelPHP?

    What is the minimum requirement for installing FuelPHP?..