yes but I've forgotten the return
(sorry I'm at playing around level II :) )
public function indexAction()
{
$view = new ViewModel(array(
'message' => 'Hello world',
));
$view->setTemplate('foo/baz-bat/do-something-crazy');
// return $view;
}
without return dont trigger any error
I think it's not executed.
--
View this message in context:
http://zend-framework-community.634137.n4.nabble.com/Zend-2-View-setTemplate-dont-trigger-any-errors-tp4659712p4659714.html
Sent from the Zend Framework mailing list archive at Nabble.com.
--
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]