zend-framework - How to implement template switching in zf2
给我你的怀抱
给我你的怀抱 2017-05-16 16:43:23
0
1
557

zf2 How to implement template switching

给我你的怀抱
给我你的怀抱

reply all(1)
淡淡烟草味
use Zend\View\Model\ViewModel; // Add resource

class IndexController extends AbstractActionController
{
    public indexAction()
   {
       $viewModel = new ViewModel();
       $viewModel->setTemplate('application/index/index');
       return $viewModel;
    }

For details, see: http://framework.zend.com/manual/2.2/en/modules/zend.view.quick-start.html

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template