Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <frontend>
- <routers>
- <customlinkedproducts>
- <use>standard</use>
- <args>
- <module>Icpp_CustomLinkedProducts</module>
- <frontName>accessories</frontName>
- </args>
- </customlinkedproducts>
- </routers>
- <layout>
- <updates>
- <customlinkedproducts>
- <file>guestorder.xml</file>
- </customlinkedproducts>
- </updates>
- </layout>
- </frontend>
- i added following code to guestorder.xml file
- <layout version="0.1.0">
- <accessories_index_index>
- <reference name="root">
- <action method="setTemplate"><template>page/1column.phtml</template></action>
- </reference>
- <reference name="content">
- <block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml"> </block>
- </reference>
- </accessories_index_index>
- </layout>
- i added following code to IndexController.php file
- <?php
- class Icpp_CustomLinkedProducts_IndexController extends Mage_Core_Controller_Front_Action
- {
- public function indexAction ()
- {
- echo "yufgty";
- $this->loadLayout();
- //$this->getLayout()->getBlock("head")->setTitle($this->__('Accessories %s'));
- $this->renderLayout();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement