*/ class Mage_Captcha_Block_Captcha extends Mage_Core_Block_Template { /** * Renders captcha HTML (if required) * * @return string */ protected function _toHtml() { $blockPath = Mage::helper('captcha')->getCaptcha($this->getFormId())->getBlockName(); $block = $this->getLayout()->createBlock($blockPath); $block->setData($this->getData()); return $block->toHtml(); } }