Execution order of the controller’s functions

__contruct(): Sets all the controller’s member variables.
init(): Initializes the controller.
setMedia() or setMobileMedia(): Adds all JavaScript and CSS specifics to the page so that they can be combined, compressed and cached (see PrestaShop’s CCC tool, in the back-office “Performance” page, under the “Advanced preferences” menu).
postProcess(): Handles ajaxProcess.
initHeader(): Called before initContent().
initContent(): Initializes the content.
initFooter(): Called after initContent().
display() or displayAjax(): Displays the content.

  Like
Author: bm on January 10, 2014
Category: prestashop

Your comment:

Your Name

Comment:




Last articles