Form Generation Library |
[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!
[eluser]BaRzO[/eluser]
@mat-moo and @hugle still not working maye my php version is old ? Any idea ?
[eluser]Mat-Moo[/eluser]
I use it different via the model, e.g. Code: $config=array(
[eluser]BaRzO[/eluser]
@mat-moo there is some typo in your example i have fixed them but still does not work
[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);
[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
[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!
[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...
[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)?
[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 :-) |
Welcome Guest, Not a member yet? Register Sign In |