when i create block and insert like this,
$block = $this->getLayout()->createBlock('Mage_Core_Block_Template', 'reviewfororderproducts',array('template' => 'clarion/review.phtml '))->setData('data', $data);
it works fine $block->toHtml()
returns a string with all html
but when i do like this
$block = $this->getLayout()->createBlock('Clarion_ReviewReminder_Block_Allproducts', 'reviewfororderproducts',array('template' => 'clarion/review.phtml '))->setData('data', $data);
i can't get the block, $block->toHtml()
returns null
my block class is only extends from Mage_Core_Block_Template
class Clarion_ReviewReminder_Block_Allproducts extends Mage_Core_Block_Template
{
protected function _construct()
{
parent::_construct();
}
}