CI4 Form Builder Lib |
(06-24-2023, 05:45 PM)iRedds Wrote: I think this approach complicates the work with forms. In fact, this is a wrapper over helpers. Hello IRedds, I developed this lib for a personal project, and it helped me in aspects like: - Define (or edit) the forms template and its components in an easier way, like before and after <form> tag (to add for example an alert with success/error message of a submit), before and after each field, styles of message validation errors, ... - Easy to set the field structure (with its label, and inside a "<div>"). If necessary, I change the template and all fields will be changed (or each field can be its own template) - Set the field values just by passing PHP Code: $this->request->getPost() PHP Code: $userModel->find(1) - Just set PHP Code: $validation->getErrors() Anyway. I hope it can be an a good alternative! Thanks! |
Messages In This Thread |
CI4 Form Builder Lib - by rafaelwendel - 06-24-2023, 12:59 PM
RE: CI4 Form Builder Lib - by datamweb - 06-24-2023, 01:36 PM
RE: CI4 Form Builder Lib - by iRedds - 06-24-2023, 05:45 PM
RE: CI4 Form Builder Lib - by rafaelwendel - 06-24-2023, 06:30 PM
RE: CI4 Form Builder Lib - by kenjis - 06-24-2023, 06:57 PM
RE: CI4 Form Builder Lib - by iRedds - 06-24-2023, 06:59 PM
|