Form Generation Library - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: Form Generation Library (/showthread.php?tid=16439) |
Form Generation Library - El Forum - 05-11-2009 [eluser]macigniter[/eluser] @all I have received some valuable feedback from some of you and will try to incorporate it in the next release of the library. I am also planning on finishing the user guide asap. There's just too much going on right now and this library is just a thing I am developing on the side. Anyway, I appreciate any feedback or suggestions you have and would love to know if you use the library and what your experience is... Form Generation Library - El Forum - 05-11-2009 [eluser]Robert May[/eluser] [quote author="macigniter" date="1242068383"]@robert: In order to make it work you need to submit the form to the same controller and then redirect from there. You cannot access $form->get() in the login() function, since you haven't instantiated the form object in that function. Try this: Code: class Auth extends Controller { Thanks muchly! That makes perfect sense now Form Generation Library - El Forum - 05-12-2009 [eluser]jcq[/eluser] I've been following this project for a little while now and it shows great promise! I'm curious if there's a way to optionally specify additional tags to surround form elements for the purposes of styling. Looking through the documentation and the code I don't see that functionality, but perhaps I'm missing it. Ideally, I'd like to be able to specify that I want LABEL/INPUT combos to be surrounded by an LI (or DIV, or whatever) tag, and that everything within a FIELDSET is contained within a UL, OL, DIV, etc. This would allow for much greater flexibility in creating styles for very accessible forms. Best case scenario would be to be able to specify it as a form-wide setting that can also be overridden on individual elements, but even just a form-wide config parameter would be quite helpful. I envision something along the lines of setting a config variable (probably an array) that specifies a tag (or tags) to wrap or be contained within a given form element. After that, it's just a matter of automatically appending that tag (and corresponding closing tag) whenever the HTML is generated for the form element. Thank you for all the work that you've done on this. It looks great! Form Generation Library - El Forum - 05-12-2009 [eluser]IamPrototype[/eluser] I FUCKING LOVE THIS MAN! DAMN, YOU'RE GREAT! I've read the user guide and it all seems to easy and chill I can't wait to use it and I'm looking forward for further versions/updates! Form Generation Library - El Forum - 05-13-2009 [eluser]got 2 doodle[/eluser] Great stuff here, just working through it to see it it's appropriate for a project small bug here Line 994 change $name to $nameid Code: function iupload($nameid, $label='', $required=FALSE, $atts=array()) Having a problem with the upload function A small error in the docs Code: $form->upload('file', 'Upload File', 'allowed_types=pdf|zip, max_size=4000') should read Code: $this->form->upload('file', 'Upload File','','allowed_types=pdf|zip, max_size=4000'); note third passed parameter is missing in docs Very very cool! can't wait to see the docs finished. doodle Form Generation Library - El Forum - 05-13-2009 [eluser]got 2 doodle[/eluser] OK I'm baffled and I simply must move on to maintain my sanity, at least for now Here is my controller (function within controller) Code: /**************************** restrict **************************************/ Ok so cool the view shows the form. On success I just send it to another existing page but using the profiler I don't see any $_POST data. I've tried ->onsuccess('redirect', '/res/upload_data'); with the same result The bundled example works no problem. hut: Any ideas?? doodle Form Generation Library - El Forum - 05-13-2009 [eluser]got 2 doodle[/eluser] Nope, don't get it! Code: /**************************** restrict **************************************/ Even this paired down version, no $_POST data :down: doodle Form Generation Library - El Forum - 05-14-2009 [eluser]got 2 doodle[/eluser] Um.. a little more playing around and I think this lib is going to be really useful. I uploaded a file with an ->upload control and it went to my defined folder all is well but umm.. what happend to the $_POST data?? How can I retrieve the uploaded file name etc.? I see about one hundred functions in the library, now I know why the documentation is unfinished. I need a hint.. please doodle Form Generation Library - El Forum - 05-14-2009 [eluser]got 2 doodle[/eluser] Ok, if I remove the ->onsuccess() then I get some $_POST data, it seems the redirect wipes out any $_POST data Possible bug here. If I define allowed_types=csv in the config file only I can upload anything I want, but if I define in the controller allowed_types=csv then I can only upload csv files. doodle Form Generation Library - El Forum - 05-19-2009 [eluser]macigniter[/eluser] [quote author="jcq" date="1242168090"]I've been following this project for a little while now and it shows great promise! I'm curious if there's a way to optionally specify additional tags to surround form elements for the purposes of styling. Looking through the documentation and the code I don't see that functionality, but perhaps I'm missing it. Ideally, I'd like to be able to specify that I want LABEL/INPUT combos to be surrounded by an LI (or DIV, or whatever) tag, and that everything within a FIELDSET is contained within a UL, OL, DIV, etc. This would allow for much greater flexibility in creating styles for very accessible forms. Best case scenario would be to be able to specify it as a form-wide setting that can also be overridden on individual elements, but even just a form-wide config parameter would be quite helpful. I envision something along the lines of setting a config variable (probably an array) that specifies a tag (or tags) to wrap or be contained within a given form element. After that, it's just a matter of automatically appending that tag (and corresponding closing tag) whenever the HTML is generated for the form element. Thank you for all the work that you've done on this. It looks great![/quote] I will add it to my list! Thanks for your feedback. |