Exemplo n.º 1
0
 protected function createComponentPathSelectForm()
 {
     $form = new Form();
     $form::extensionMethod("addPathSelect", "Ixtrum\\Forms\\Controls\\PathSelect::register");
     $form->addPathSelect("path", "Path", $this->context->parameters["appDir"])->setRequired("Item '%label' required.")->enableFiles();
     $form->addSubmit("submit", "Send");
     $form->onSuccess[] = $this->successPathSelectForm;
     return $form;
 }