/** * Closes an HTML form, cleans up values set by FormHelper::create(), and writes hidden * input fields where appropriate. * * Overrides parent method to reset the form alignment and grid size. * * @param array $secureAttributes Secure attributes which will be passed as HTML attributes * into the hidden input elements generated for the Security Component. * @return string A closing FORM tag. */ public function end(array $secureAttributes = []) { $this->_align = $this->_grid = null; return parent::end($secureAttributes); }
/** * Closes an HTML form, cleans up values set by `FormHelper::create()`, * and writes hidden input fields where appropriate * @param array $secureAttributes Secure attibutes which will be passed * as HTML attributes into the hidden input elements generated for the * Security Component. * @return string * @uses $inline */ public function end(array $secureAttributes = []) { $this->inline = false; return parent::end($secureAttributes); }
/** * End html form. * * @param array $secureAttributes * @return string */ public function end(array $secureAttributes = []) { if ($this->_isJsForm) { return implode('', [$this->hidden('action', ['value' => '', 'class' => 'jsFormAction']), parent::end($secureAttributes)]); } return parent::end($secureAttributes); }