getTabs()->add( 'addurl', array( 'title' => 'Add Dashboard URL', 'url' => Url::fromRequest() ) )->activate('addurl'); $form = new AddUrlForm(); $form->handleRequest(); $this->view->form = $form; } /** * Display the dashboard with the pane set in the 'pane' request parameter * * If no pane is submitted or the submitted one doesn't exist, the default pane is * displayed (normally the first one) */ public function indexAction() { $dashboard = new Dashboard(); $dashboard->setUser($this->getRequest()->getUser()); $dashboard->load(); if (! $dashboard->hasPanes()) { $this->view->title = 'Dashboard'; } else { if ($this->_getParam('pane')) { $pane = $this->_getParam('pane'); $dashboard->activate($pane); } if ($dashboard === null) { $this->view->title = 'Dashboard'; } else { $this->view->title = $dashboard->getActivePane()->getTitle() . ' :: Dashboard'; $this->view->tabs = $dashboard->getTabs(); /* Temporarily removed $this->view->tabs->add( 'Add', array( 'title' => '+', 'url' => Url::fromPath('dashboard/addurl') ) ); */ $this->view->dashboard = $dashboard; } } } }