How To Pass Variables From Layout To Block?

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’);

Zeen is a next generation WordPress theme. It’s powerful, beautifully designed and comes with everything you need to engage your visitors and increase conversions.

Read More
After A Matching Action Controller Is Found, What Steps Occur Before The Action Method Is Executed?