我创建了一个自定义管理模块,但我无法在其中放入内容,它总是空白我正在尝试使用简单的代码进行测试,但似乎没有任何效果
public function indexAction()
{
$this->loadLayout();
$this->_addContent($this->getLayout()->createBlock('adminhtml/template')->setTemplate('uhmaadmin/contactos.list.phtml')->toHtml());
$this->renderLayout();
}
.phtml 中的
echo 'hello world';
但不打印任何内容,如果在 phtml 中出错,系统崩溃,这意味着它正在获取文件,但是,我缺少什么,请帮助