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 - 12-09-2009 [eluser]hugle[/eluser] [quote author="BaRzO" date="1260401342"][quote author="macigniter" date="1260380294"][quote author="BaRzO" date="1260151149"]how can i use iupload or upload ? pls give a snippet...[/quote] Please read the user guide on the upload() element.[/quote] I am using Code: barzo@laptop:~$ uname -a uploads dir chmod 777 My Controller Code: function index() and i get Code: Array What is wrong at this ?[/quote] Hello You need change your function to: Code: ->fieldset('Upload Test') after ->validate() you can use: Code: if ($this->form->valid).... Good luck! Form Generation Library - El Forum - 12-09-2009 [eluser]BaRzO[/eluser] @mat-moo and @hugle still not working maye my php version is old ? Any idea ? Form Generation Library - El Forum - 12-09-2009 [eluser]Mat-Moo[/eluser] I use it different via the model, e.g. Code: $config=array( Form Generation Library - El Forum - 12-09-2009 [eluser]BaRzO[/eluser] @mat-moo there is some typo in your example i have fixed them but still does not work Form Generation Library - El Forum - 12-10-2009 [eluser]hugle[/eluser] [quote author="BaRzO" date="1260437634"]@mat-moo there is some typo in your example i have fixed them but still does not work [/quote] could you please show your example? controller and model Sorry, I totally forgot, that UPLOAD data is passed to model only (it'll be fixed soon) basically you can: Code: print_r($data); Form Generation Library - El Forum - 12-10-2009 [eluser]Mat-Moo[/eluser] [quote author="BaRzO" date="1260437634"]@mat-moo there is some typo in your example i have fixed them but still does not work [/quote] Any clues on "Does not work"? Have you used any debug log messages to see if functions are called and data set? Is the model being called (Which it only will if all your validation is working) @macigniter Your config looks good and a bit more simple. It's those darn radiogroups that are causing me agro at the moment Form Generation Library - El Forum - 12-10-2009 [eluser]macigniter[/eluser] [quote author="BaRzO" date="1260401342"] Code: Array What is wrong at this ?[/quote] You've done everything right. The reason why it is not working is because you are using an old version of the library. I have not uploaded the latest version yet since I still want to figure out the best way to implement the prefix/suffix and radio/checkgroups issues. But, since you guys are so active here you can download the latest build of the library here: Form Generation Library v0.2.2 (pre-release) Let me know if it works with this one! Form Generation Library - El Forum - 12-10-2009 [eluser]macigniter[/eluser] [quote author="Mat-Moo" date="1260457257"]@macigniter Your config looks good and a bit more simple. It's those darn radiogroups that are causing me agro at the moment [/quote] I know... :-( it's on top of my todo list for the lib. The next version will regard single checkboxes and radiobuttons different than groups. Stay tuned... Form Generation Library - El Forum - 12-10-2009 [eluser]Mat-Moo[/eluser] I know fieldsets are auto-closed, but what if you want your submit/reset etc. buttons outside of a fieldset? Maybe there needs to be a fieldset(FALSE) which will close the current fieldset (if applicable)? Form Generation Library - El Forum - 12-10-2009 [eluser]macigniter[/eluser] [quote author="Mat-Moo" date="1260469644"]I know fieldsets are auto-closed, but what if you want your submit/reset etc. buttons outside of a fieldset? Maybe there needs to be a fieldset(FALSE) which will close the current fieldset (if applicable)?[/quote] check out the latest pre-release. there is a new function exactly as you proposed. with ->fieldset(FALSE) you can close the last fieldset :-) |