/** * Executes before rendering the page for the Add task. */ protected function onBeforeAdd() { // Hide main menu \JFactory::getApplication()->input->set('hidemainmenu', true); parent::onBeforeAdd(); }