0
塊
我收到錯誤,如下面顯示在Magento管理面板
Recoverable Error: Argument 1 passed to Mage_Adminhtml_Controller_Action::_addContent() must be an instance of Mage_Core_Block_Abstract, boolean given,
我的indexAction的代碼是像下面
public function indexAction()
{
// instantiate the grid container
$brandBlock = $this->getLayout()
->createBlock('digitech_brandlogo_adminhtml/brandlogo');
// Add the grid container as the only item on this page
$this->loadLayout()
->_addContent($brandBlock)
->renderLayout();
}
在這種情況下,我的問題是,這是什麼意思「
$brandBlock = $this->getLayout()
->createBlock('digitech_brandlogo_adminhtml/brandlogo');
「?? ??
我想知道有關塊和佈局結構/安排。