view->tabs->remove('objects'); } public function indexAction() { $r = $this->getRequest(); if ($r->getActionName() !== 'templates' && ! $this->getRequest()->isApiRequest()) { $this->redirectNow('director/services/templates'); } return parent::indexAction(); } }