protected function onBeforeAdd() { /** @var DataModel $model */ $model = $this->getModel(); $this->item = $model->reset(true, true); }
/** * Executes before rendering the page for the Add task. */ protected function onBeforeAdd() { // Hide main menu \JFactory::getApplication()->input->set('hidemainmenu', true); parent::onBeforeAdd(); }