/** * @param Form $form * @return string */ protected function beginForm(Form $form) { return Html::beginTag('form', ['method' => 'post', 'action' => $form->getAction(), 'accept-charset' => $form->getCharset()]); }