扫码关注官方订阅号
zf2 如何实现模版切换
use Zend\View\Model\ViewModel; // Add resource class IndexController extends AbstractActionController { public indexAction() { $viewModel = new ViewModel(); $viewModel->setTemplate('application/index/index'); return $viewModel; }
詳見: http://framework.zend.com/manual/2.2/en/modules/zend.view.quick-start.html
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
詳見: http://framework.zend.com/manual/2.2/en/modules/zend.view.quick-start.html