you can set any variable using set method as following on index.php inside the public folder
Let
$config = 'test';
Zend_Registry::set('config', $config);
once the variable has been set then you can get on any controllers/models by following method
Zend_Registry::get('config');
Hop it Helps!!