Magento block and layout confusion -
i'm new in magento. im trying understand how blocks , layouts working. here layout file `
<layout> <custom_index_getallfaq> <reference name="head"> <action method="settitle"> <arg>all faq's</arg> </action> </reference> <reference name="content"> <block type="custom/type" name="root" template="view.phtml" /> </reference> </custom_index_getallfaq> <custom_index_addnewfaq> <reference name="head"> <action method="settitle"> <arg>all faq's</arg> </action> </reference> <reference name="content"> <block type="custom/type" name="root" template="form.phtml" /> </reference> </custom_index_addnewfaq> </layout>`
first handler working properly. displaying template view.phtml problem second handler working unexpected me. displaying index page of site instead of form.phtml thank help
Comments
Post a Comment