Add left navigation for the ManageAccountController
Signed-off-by: Michael Tänzer <neo@nhng.de>
This commit is contained in:
parent
5e39c30e12
commit
72e3df0748
1 changed files with 15 additions and 1 deletions
|
@ -21,7 +21,21 @@ class ManageAccountController extends Zend_Controller_Action
|
|||
APPLICATION_ENV);
|
||||
|
||||
$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()
|
||||
|
|
Loading…
Reference in a new issue