Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 27th, 2011  |  syntax: PHP  |  size: 1.63 KB  |  hits: 153  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.     public function indexAction()
  2.     {
  3.                         $layout = $this->loadLayout();
  4.                         $block = $this->getLayout()->createBlock(
  5.                         'checkout/cart_sidebar',
  6.                         'PPWD_Custom',
  7.                         array('template' => 'checkout/cart/sidebar.phtml')
  8.                         );
  9.                     echo $block;
  10.                    // $this->renderLayout();
  11.                
  12.     }
  13.  
  14.  
  15. =============================================================================================
  16. theme/layout/custom.xml
  17.  
  18.  
  19. <?xml version="1.0"?>
  20. <layout version="0.1.0">
  21.     <custom_index_index>
  22.         <reference name="content">
  23.            
  24.            
  25.               <block type="custom/cart_sidebar" name="cart_sidebar" template="custom/cart/sidebar.phtml" before="-">
  26.                 <action method="addItemRender"><type>simple</type><block>custom/cart_item_renderer</block><template>custom/cart/sidebar/default.phtml</template></action>
  27.                 <action method="addItemRender"><type>grouped</type><block>custom/cart_item_renderer_grouped</block><template>custom/cart/sidebar/default.phtml</template></action>
  28.                 <action method="addItemRender"><type>configurable</type><block>custom/cart_item_renderer_configurable</block><template>custom/cart/sidebar/default.phtml</template></action>
  29.                 <block type="core/text_list" name="cart_sidebar.extra_actions" as="extra_actions" translate="label" module="custom">
  30.                     <label>Shopping Cart Sidebar Extra Actions</label>
  31.                 </block>
  32.             </block>
  33.            
  34.            
  35.         </reference>
  36.     </custom_index_index>
  37.    
  38.    
  39. </layout>
  40. =============================================================================================