Advertisement
Guest User

Untitled

a guest
Nov 1st, 2014
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. $block = Mage::app()->getLayout()->createBlock('checkout/cart_shipping');
  2.  
  3. public function getTest()
  4. {
  5. $data = 'test';
  6. return $data;
  7. }
  8.  
  9. echo $this->getTest();
  10.  
  11. $myblock = $this->getLayout()->getBlockSingleton('checkout/cart_shipping')->getYourfunctionname();
  12.  
  13. $myblock = $this->getLayout()->createBlock('checkout/cart_shipping')->getYourfunctionname();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement