I've an application running on Zend Framework 1, I've a set of view helpers located on a directory application/views/helpers
and the helpers are loaded on the following code when the application is run
$view = $this->_bootstrap->bootstrap('view')->getResource('view');
$view->addHelperPath(
'/views/helpers',
'Classy_View_Helper_'
);
So current helper class name is like Classy_View_Helper_Something
Now due to a new business rule I need to have specific view helpers according to a parameter on the Zend Registry that extends from the original helper but overrides some params in functions, so, for example if my registry value is Tiny then I should look for the class Classy_View_Helper_Tiny_Something
that extends from Classy_View_Helper_Something
and must be located on /views/helpers/tiny
I was thinking about putting this logic in the same place for the $view
variable but I can't verify for the registry value on that code.
Any idea how can I perform this modification on ZF1?