这个
$this->_addContent
管理控制器上的方法应传递一个块对象。
protected function _addContent(Mage_Core_Block_Abstract $block)
{
$this->getLayout()->getBlock('content')->append($block);
return $this;
}
你进来了
$this->getLayout()->createBlock('adminhtml/template')->setTemplate('uhmaadmin/contactos.list.phtml')->toHtml()
它是一个字符串。你渲染得太快了。如果您检查日志,您应该看到一个警告/错误/一些东西,告诉您参数
_addContent
是意外类型。
尝试不使用tohtml方法调用
$this->_addContent($this->getLayout()->createBlock('adminhtml/template')->setTemplate('uhmaadmin/contactos.list.phtml'));