Hello,
I'm using MVC, Zend_Layout and I want to call the Zend_View::setEncoding method in the bootstrap. What's the best way to do it ?
Thanks
If you're using ViewRenderer like I am, you can probably do the following:
[PHP]
<?php
// bootstrap
//view setup
$view = new Zend_View();
//set encoding
$view->setEncoding('utf8');
$viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelp er('viewRenderer');
$viewRenderer->setView($view);;
?>
[/PHP]