/** * A method for getting the form from the model. * * @param array $data Data for the form. * @param boolean $loadData True if the form is to load its own data (default case), false if not. * @param boolean $source The name of the form. If not set we'll try the form_name state variable or fall back to default. * * @return mixed A F0FForm object on success, false on failure */ public function getForm($data = array(), $loadData = true, $source = null) { $f0fPlatform = F0FPlatform::getInstance(); $isFrontend = $f0fPlatform->isFrontend(); $this->input->set('option', 'com_content'); $this->input->set('view', $isFrontend ? 'form' : 'article'); return parent::getForm($data, $loadData, $source); }