Magento Certified Developer GuideCategory: 3.1 Design & LayoutWhich ways exist to specify the layout update handles that will be processed during a request?
Manish Prakash Staff asked 5 years ago

1. In a controller action when we call the loadLayout() function we can pass different handles

$this->loadLayout(array('handle1','handle2','default');

But important thing to note here, if you pass an array of handles here the default handle is not loaded automatically.

2. Using the function below

$this->getLayout()->getUpdate()->addHandle('handle3');

3. It can be specified in the layout xml file

  <module_controller_action>
      <update handle='handle4'></update>
  </module_controller_action>