Add left navigation for the ManageAccountController

Signed-off-by: Michael Tänzer <neo@nhng.de>
This commit is contained in:
Michael Tänzer 2010-07-01 19:58:45 +02:00
parent 5e39c30e12
commit 72e3df0748

View file

@ -21,7 +21,21 @@ class ManageAccountController extends Zend_Controller_Action
APPLICATION_ENV); APPLICATION_ENV);
$this->db = Zend_Db::factory($config->ca_mgr->db->auth->pdo, $this->db = Zend_Db::factory($config->ca_mgr->db->auth->pdo,
$config->ca_mgr->db->auth); $config->ca_mgr->db->auth);
// Build the left navigation
$actions = array();
$actions['assurance'] = I18n::_('Automated Assurance');
$actions['admin-increase'] = I18n::_('Administrative Increase');
$actions['assurer-challenge'] = I18n::_('Assurer Challenge');
$url = array('controller' => 'manage-account');
foreach ($actions as $action => $label) {
$url['action'] = $action;
$link = '<a href="'.$this->view->url($url, 'default', true).'">'.
$label . '</a>';
$this->view->leftNav($link);
}
} }
public function indexAction() public function indexAction()