首页 > 其他 > 详细

yaf 视图

时间:2017-08-23 21:25:12      阅读:378      评论:0      收藏:0      [点我收藏+]

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"

本文出自 “我是程序我最大” 博客,请务必保留此出处http://skinglzw.blog.51cto.com/10729606/1958780

yaf 视图

原文:http://skinglzw.blog.51cto.com/10729606/1958780

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!