Add left navigation for the ManageAccountController

Signed-off-by: Michael Tänzer <neo@nhng.de>
bug-1390
Michael Tänzer 14 years ago
parent 5e39c30e12
commit 72e3df0748

@ -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()

Loading…
Cancel
Save