Posted by: james | October 12, 2009

Render Block from Controller’s Action in Magento..

How can i render any block from controllers action..

in your action code you have to write,

$this->getLayout->createBlock(‘full_path upto that block file..’)
$this->_initAction()          ->_addContent($this->getLayout()->createBlock(‘adminhtml/catalog_product_attribute_edit’)->toHtml                             ->renderLayout();

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: