Skip to main content
added 86 characters in body
Source Link
Marius
  • 198.5k
  • 55
  • 424
  • 833

Try like this:

$this->loadLayout();
$layout = $this->getLayout();
$block = $layout->getBlock("hello");
echo $block->toHtml();

For ajax requests do this:

$this->getResponse()->setBody($block->toHtml());

Try like this:

$this->loadLayout();
$layout = $this->getLayout();
$block = $layout->getBlock("hello");
echo $block->toHtml();

Try like this:

$this->loadLayout();
$layout = $this->getLayout();
$block = $layout->getBlock("hello");
echo $block->toHtml();

For ajax requests do this:

$this->getResponse()->setBody($block->toHtml());
Source Link
Marius
  • 198.5k
  • 55
  • 424
  • 833

Try like this:

$this->loadLayout();
$layout = $this->getLayout();
$block = $layout->getBlock("hello");
echo $block->toHtml();