fix bug - missing db connection

This commit is contained in:
Markus Warg 2010-08-18 15:06:08 +02:00
parent 79b16d2a04
commit ea4c410936

View file

@ -17,6 +17,10 @@ class MailController extends Zend_Controller_Action
public function init()
{
/* Initialize action controller here */
$config = new Zend_Config_Ini(APPLICATION_PATH . '/configs/application.ini', APPLICATION_ENV);
$db2 = Zend_Db::factory($config->ca_mgr->db->auth2->pdo, $config->ca_mgr->db->auth2);
Zend_Registry::set('auth2_dbc', $db2);
$session = Zend_Registry::get('session');
$auth = $session->authdata['authed_permissions'];