http://yaf_demo.com/index/index/show
application/views/index/show.phtml
http://yaf_demo.com/user/user/index
application/modules/User/views/user/index.phtml
return false 不渲染视图,默认渲染
在bootstrap.php 全局禁用
_initView
$dispatcher::getInstance()->disableView();
$msgTpl = $this->getView()->render('index/show.phtml');
echo $msgTpl;
$this->getView()->display('index/show.phtml');
controller init()
$this->getView()->setScriptPath(APPLICATION_PATH.'/template');
application.view.ext = "phtml"
转载于:https://blog.51cto.com/skinglzw/1958780