Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Magento sending data from controller to view not loading styles
 
sajankjohn
Jr. Member
 
Total Posts:  4
Joined:  2013-08-14
 

i am passing data from magento controller to a template,and the datas in the template page is displayed,but the contents are displayed in a white screen out side of my theme.Here is my code

$block $this->getLayout()->createBlock('core/template'
->
setData('products_notavailable,$Not_available_products)
 ->setData('
products_available',$available_products)
 ->setData('
quantity,$submit_qty)
 ->
setTemplate('availableorders/display.phtml'); 
$this->renderLayout(); 
$this->getResponse()->setBody($block->toHtml());
 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top