/** * This method initialises the Proofreader's form and stores it into static variable */ protected function initForm() { require_once JPATH_SITE . '/components/com_proofreader/helpers/form.php'; $form = ProofreaderFormHelper::getScript($this->params); JFactory::getApplication()->setUserState('com_proofreader.typo.form', $form); }