Magento how to pass parameters to blocks
Even if the block is inserted via XML or via code, parameters can be passed with the call. If the block is defined in XML, this is how you pass data for processing in the phtml file: <block type=”core/template” name=”block_name” as=”block_name” before=”-” template=”page/html/custom/blocktemplate.phtml”> <action method=”setData”> <name>currentStep</name><value>2</value> </action></block> If the block is inserted via code, here […]
Read More