相关疑难解决方法(0)

Magento自定义管理模块为空白

我已经创建了一个自定义管理模块,但我不能在其中放入内容,它总是空白我正在尝试使用简单的测试代码,但似乎没有任何工作

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中出错,系统崩溃,就意味着它得到了文件,但是,我想要的是什么,请帮助

php oop magento argument-passing

6
推荐指数
1
解决办法
5254
查看次数

标签 统计

argument-passing ×1

magento ×1

oop ×1

php ×1