I have a controller plugin with postDispatch()
hook, and there I have a $variable
.
How to pass this variable to the view
instance?
I tried Zend_Layout::getMvcInstance()->getView()
, but this returns new view instance (not the application resource). The same with $bootstrap->getResource('view')
.
I don't want to pass it as a request param.
Now, as a workaround I do it using Zend_Registry
.
But, is it the best way?