FOF30\View\DataView\Raw::onBeforeAdd PHP Method

onBeforeAdd() protected method

Executes before rendering the page for the add task.
protected onBeforeAdd ( )
    protected function onBeforeAdd()
    {
        /** @var DataModel $model */
        $model = $this->getModel();
        $this->item = $model->reset(true, true);
    }

Usage Example

Esempio n. 1
0
File: Html.php Progetto: akeeba/fof
 /**
  * Executes before rendering the page for the Add task.
  */
 protected function onBeforeAdd()
 {
     // Hide main menu
     \JFactory::getApplication()->input->set('hidemainmenu', true);
     parent::onBeforeAdd();
 }