Yes, Zend_Registry can be used for this. Another thing you can do is register the controller plugin before sending, which will add the tenantID as a request parameter before any controller receives it:
class YourApp_Plugin_IdWriter extends Zend_Controller_Plugin_Abstract { public function preDispatch(Zend_Controller_Request_Abstract $request) { $request->setParam('tenantID', ...); } }
You need to register the plugin in your application.ini application:
resources.frontController.plugins.access = "YourApp_Plugin_IdWriter"
source share