public function indexAction() { try { $viewModel = parent::indexAction(); } catch (\Exception $e) { $model = new ViewModel(); $model->setTemplate('uthando-session-manager/session-manager/not-implemented'); } return $viewModel; }
public function indexAction() { $menuId = $this->setMenuId(); if (!$menuId) { return $this->redirect()->toRoute('admin/menu'); } $viewModel = parent::indexAction(); $viewModel->setVariable('menuId', $menuId); return $viewModel; }