/** * Display the view * * @param boolean $cachable If true, the view output will be cached - NOTE does not actually control caching !!! * @param array $urlparams An array of safe url parameters and their variable types, for valid values see {@link JFilterInput::clean()}. * * @return JController A JController object to support chaining. * * @since 11.1 */ public function display($cachable = false, $urlparams = false) { $document = JFactory::getDocument(); $viewName = 'calendar'; $viewType = $document->getType(); // Set the default view name from the Request $view = $this->getView($viewName, $viewType); $formModel = JModelLegacy::getInstance('Form', 'FabrikFEModel'); parent::display(); return $this; }
/** * Display the view */ function display() { $document = JFactory::getDocument(); $viewName = 'calendar'; $viewType = $document->getType(); // Set the default view name from the Request $view =& $this->getView($viewName, $viewType); //create a form view as well to render the add event form. //$view->_formView = &$this->getView('Form', $viewType); $formModel = JModel::getInstance('Form', 'FabrikFEModel'); //$view->_formView->setModel($formModel, true); parent::display(); }