container->application->getDocument()->getMenu()->disableMenu('main'); return true; } /** * Executes before rendering the page for the Edit task. * * @return boolean Return true to allow rendering of the page */ protected function onBeforeEdit() { // Hide main menu $this->container->application->getDocument()->getMenu()->disableMenu('main'); return true; } /** * Executes before rendering the page for the Read task. * * @return boolean Return true to allow rendering of the page */ protected function onBeforeRead() { return true; } }