Renders form begin.
public static renderFormBegin ( |
||
$form | ||
$attrs | array | |
return | string |
/** * Renders form begin. * @param Form $form * @param array $attrs * @param bool $withTags * @return string */ public static function renderFormBegin(Form $form, array $attrs, $withTags = TRUE) { $renderer = $form->getRenderer(); if ($renderer instanceof IManualRenderer) { $renderer->beforeRender($form); } return parent::renderFormBegin($form, $attrs, $withTags); }
public function renderBegin(Form $form, array $attrs = [], $withTags = TRUE) { if ($this->form !== $form) { $this->form = $form; } $this->renderedControls = new SplObjectStorage(); $this->addFormModeClass($form, $attrs); /** @noinspection PhpInternalEntityUsedInspection */ $rendered = Runtime::renderFormBegin($form, $attrs, $withTags); return $rendered; }
/** @deprecated */ public static function renderFormBegin(Form $form, array $attrs, $withTags = TRUE) { echo Runtime::renderFormBegin($form, $attrs, $withTags); }
/** @deprecated */ public static function renderFormBegin(Form $form, array $attrs, $withTags = TRUE) { trigger_error(__METHOD__ . '() is deprecated, use Nette\\Bridges\\FormsLatte\\Runtime::renderFormBegin()', E_USER_DEPRECATED); echo Runtime::renderFormBegin($form, $attrs, $withTags); }