end() публичный Метод

Closes an HTML form, cleans up values set by FormHelper::create(), and writes hidden input fields where appropriate.
public end ( array $secureAttributes = [] ) : string
$secureAttributes array Secure attributes which will be passed as HTML attributes into the hidden input elements generated for the Security Component.
Результат string A closing FORM tag.
Пример #1
0
 /**
  * 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);
 }
Пример #2
0
 /**
  * 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);
 }
Пример #3
0
 /**
  * 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);
 }