Q. How to pass variables from layout to block?
<action method=”setData”><name>category_id</name><value>3</value></action>
In the block, this can be retrieved by..
$categoryId = $this->getCategoryId();
$categoryId = $this->getData(‘category_id’);
<action method=”setData”><name>category_id</name><value>3</value></action>
In the block, this can be retrieved by..
$categoryId = $this->getCategoryId();
$categoryId = $this->getData(‘category_id’);