Zend Framework: view var set in bootstrap not accessible in view scripts?
- by understack
I've set a view var in bootstrap file like this:
protected function _initVars()
{
$this->bootstrap('layout');
$layout = $this->getResource('layout');
$view = $layout->getView();
$view->theme = 'MY_THEME';
}
My application.ini has following line as well:
resources.view[] =
But inside view scripts,
<?php echo $this->theme ?>
prints nothing.