×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: bejoy balan
Added: Sep 16, 2014 6:01 AM
Views: 20
add blocks from controller
  1.  
  2.         $this->loadLayout();
  3.         $block = $this->getLayout()->createBlock('customer/form_login')->setTemplate('persistent/customer/form/login.phtml');
  4.  
  5.         $this->getResponse()->setBody($block->toHtml());
  6.        
  7.         $this->renderLayout();