So I have a situation where I really need to observe an event which is layout handle
specific. In my case, I want to set a root template for the handle catalog_category_default
. I think I can use controller_action_layout_load_before
for this purpose. But as its name indicates it may call every time a controller tries to load a layout(I am not sure about this point). Since there are lot of controllers out there (We all know Magento is a giant system !!), I feel this event is inappropriate in my case. It is enough if I can listen to a catalog controller based layout loading event, so that unwanted observations
can be avoided ? So my question is
Can we have
particular layout handle based
or aparticular controller based
events ?If I listen to
controller_action_layout_load_before
, is that making unwanted observations ? Is it affect magento performance ?