In this blog, we are going to learn the PrestaShop controller lifecycle to ease the module development and work PrestaShop uses predefined steps in controller execution one by one.
Here we are going to explain to you the hierarchy of controller method execution.
In below example, you can find step-by-step methods called in the controller
The execution order of the controller’s functions :
This is how controller methods are executed in PrestaShop in top-to-bottom order when a controller is called. You can easily understand and start your development with the help of the above details.
Prestashop Company ? Find out More
In a MVC architecture, a Controller manages the synchronization events between the View and the Model, and keeps them up to date. It receives all the user events and triggers the actions to perform.
If you are looking for function uses in the above example you can visit the given links.
If you are facing any issues or doubts in the above process, please feel free to contact us in the comment section.
I would be happy to help.
For any doubt contact us at [email protected].