我有:
$this->_helper->layout->disableLayout();
$this->_helper->viewRenderer->setNoRender();
$this->render("voucher-list");
问题是,当我执行时:
$this->render("voucher-list");
它实际上将信息打印到屏幕上。我想将数据作为 HTML 字符串返回。这不起作用:
$htmlcontent = $this->render("voucher-list");
我将如何将此信息作为字符串返回?