我已经创建了一个自定义管理模块,但我不能在其中放入内容,它总是空白我正在尝试使用简单的测试代码,但似乎没有任何工作
public function indexAction()
{
$this->loadLayout();
$this->_addContent($this->getLayout()->createBlock('adminhtml/template')->setTemplate('uhmaadmin/contactos.list.phtml')->toHtml());
$this->renderLayout();
}
Run Code Online (Sandbox Code Playgroud)
在.phtml中
echo 'hello world';
Run Code Online (Sandbox Code Playgroud)
但是什么都不打印,如果在phtml中出错,系统崩溃,就意味着它得到了文件,但是,我想要的是什么,请帮助