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

Popular posts from this blog

c++ - CPP, 'X' button listener -

shared memory - gstreamer shmsrc and shmsink with h264 data -

r - Add string of (variable number of) arguments to a function within a function -