/** * @param HtmlElement $form * @param array $options * * @return string */ public function render(HtmlElement $form, $options = []) { if ($form instanceof Form) { } $form->beforeRender(); return app()->viewHelper()->partial($this->getScript(), ['form' => $form, 'options' => $options, 'render' => $this]); }
/** * @param HtmlElement $form * @param array $options * * @return string */ public function render(HtmlElement $form, $options = []) { if ($form instanceof Form) { } $form->beforeRender(); return (new View($this->getScript(), ['form' => $form, 'options' => $options, 'render' => $this]))->render(); }