return Response::forge(ViewModel::forge('welcome/hello.twig'));
class View_Welcome_Hello extends ViewModel { public function view() { $this->name = $this->request()->param('name', 'World'); } protected function set_view() { $this->_view = View::forge('welcome/hello.twig'); } }
class View_Welcome_Hello extends ViewModel { protected $_view = 'welcome/hello.twig'; public function view() { $this->name = $this->request()->param('name', 'World'); } }
It looks like you're new here. If you want to get involved, click one of these buttons!