标签: typo3 extbase
如何在我的扩展程序中设置特定视图?
$this->view->assign('example', $example); - 这意味着视图路径必须符合控制器和操作名称。我需要用另一个路径和名称设置特定的视图!有可能吗?
$this->view->assign('example', $example);
答案 0 :(得分:2)
您可以使用$ this-> view-> setTemplatePathAndFilename('path / to / your / template.html');设置自定义视图。