2014-01-21 118 views

回答

0

在Saxx_Forzani_Block_Adminhtml_Forzani你可以做

public function __construct() 
{ 
    parent::__construct(); 
    $this->setTemplate('forzani/admincontent.phtml'); 
} 

在控制器那麼你可以做

public function indexAction() 
{ 
    $this->_initAction() 
     ->_addContent($this->getLayout()->createBlock('saxx_forzani/adminhtml_forzani')) 
     ->renderLayout(); 
} 
+0

作爲Saxx_Forzani_Block_Adminhtml_Forzani延伸Mage_Core_Block_Template這應該只要工作 – simonthesorcerer