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

qt - QML MouseArea onWheel event not working properly when inside QML Scrollview -

java - is not an enclosing class / new Intent Cannot Resolve Constructor -

python - Error importing VideoFileClip from moviepy : AttributeError: 'PermissionError' object has no attribute 'message' -