magento - Two layouts configuration in config.xml -


i trying use 2 layout files, 1 taking data user , saving database , other display content it.i don't know how configure config.xml adding 2 layout files in magento.

here layout configurations in config.xml

<layout>   <updates>     <helloworld>       <file>displaydata.xml</file>     </helloworld>     <helloworld>       <file>helloworld.xml</file>     </helloworld>   </updates> </layout> 

you can use single layout file define multiple handlers.

http://code.tutsplus.com/tutorials/custom-layouts-and-templates-with-magento--cms-21419

in tutorial, @ last specified how use our custom layout extension. can add new handler follows.

<?xml version="1.0"?> <layout version="0.1.0">     <mymodule_index_index>         <reference name="content">             <block type="mymodule/mymodule" name="mymodule" template="mymodule/mymodule.phtml" />         </reference>     </mymodule_index_index>     <!-- new handler -->     <mymodule_index_test>         <reference name="content">             <block type="mymodule/mymodule" name="mymodule" template="mymodule/test.phtml" />         </reference>     </mymodule_index_test> </layout> 

and in controller can add relevant action new handler


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -