您必须使用“默认”(不带扩展名)并直接调用该方法(不在视图上),例如
$this->render('default');
见Zend_Controller_Action::render
渲染(字符串|null $action = null,字符串|null $name = null,bool $noController = false):无效
渲染视图
渲染视图。默认情况下,视图在视图脚本路径中作为 /.phtml 找到。您可以通过重置 {@link $viewSuffix} 来更改脚本后缀。您可以通过为 $noController 指定 boolean true 来省略控制器目录前缀。
默认情况下,呈现的内容会附加到响应中。您可以通过指定 $name 来指定要设置的命名正文内容段。
如果要提供特定脚本,请使用
$this->renderScript('controller/action.phtml');
见Zend_Controller_Action::renderScript
渲染脚本(字符串 $script,字符串 $name = null):无效
渲染给定的视图脚本
Similar to {@link render()}, this method renders a view script. Unlike render(), however, it does not autodetermine the view script via {@link getViewScript()}, but instead renders the script passed to it. Use this if you know the exact view script name and path you wish to use, or if using paths that do not conform to the spec defined with getViewScript().
By default, the rendered contents are appended to the response. You may specify the named body content segment to set by specifying a $name.