/** * Also has the side effect of enqueuing any needed JS and CSS for * this form. * Creates all the HTML necessary for displaying this form, its inputs, and * proper subsections. * Returns the HTML * @return string */ public function layout_form() { if ($this->_layout_template_file) { return EEH_Template::locate_template($this->_layout_template_file, $this->template_args(), TRUE, TRUE); } else { return parent::layout_form(); } }
/** * Also has the side effect of enqueuing any needed JS and CSS for * this form. * Creates all the HTML necessary for displaying this form, its inputs, and * proper subsections. * Returns the HTML * @return string */ public function layout_form() { if ($this->_layout_template_file) { EE_Registry::instance()->load_helper('Template'); return EEH_Template::locate_template($this->_layout_template_file, $this->template_args(), TRUE, TRUE); } else { return parent::layout_form(); } }