CodeIgniter Forums
looking for a Form and Crud library - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=11)
+--- Thread: looking for a Form and Crud library (/showthread.php?tid=61523)



looking for a Form and Crud library - badpenguin - 04-22-2015

Hello,
can anybody suggest me:

1) a Form library, for faster prototyping a Contact form, that will support not only the form's validation but also the generation of the HTML for the input, the displaying of errors, handling of the POST, etc.; something like:
$form = FormFactory('myform');
$field1 = $form->Add('TextField','name')->SetMandatory()->AddValidateCallback('filter_name')->setErrorMessage('the name is mandatory and must be uppercase')->setPlaceholder('service name');
$form->Build()->OutputHtml();

2) a Crud library, like grocerycrud.com, but that i can use within CI for faster prototyping a backoffice/admin panel?
i don't know if you know the ATK/Achievo framework, it supports relations 1-to-1, many-to-many, one-to-many with nested windows;
i'm looking something to port it to C.I.


Thanks in advance! Heart


RE: looking for a Form and Crud library - bvrignaud - 04-22-2015

I can only suggest to you : http://www.grocerycrud.com/


RE: looking for a Form and Crud library - Avenirer - 04-22-2015

Not really related to your questions, but what is it that you don't like regarding CI's form validation?


RE: looking for a Form and Crud library - badpenguin - 04-23-2015

(04-22-2015, 11:32 PM)Avenirer Wrote: Not really related to your questions, but what is it that you don't like regarding CI's form validation?

I edited my post and expanded my original question since it was not clear in first place.


RE: looking for a Form and Crud library - Avenirer - 04-23-2015

Now i understand. Thank you for expanding the question Smile


RE: looking for a Form and Crud library - badpenguin - 04-23-2015

(04-23-2015, 01:37 AM)Avenirer Wrote: Now i understand. Thank you for expanding the question Smile

Yep Smile To be more clear:

My frontends are always maded with C.I.

Instead

I usually have backoffice/admin panels done with http://www.atk-framework.com/
this tool is VERY OLD but it allows to do complex app in 2-4 hours
i've almost did a full ecommerce in only 2 days.

I need to find an alternative to it soon since its abandoned-ware and i think it does not work well with php 5.5.
So i keep it running on debian squeeze LTS.

I've half-developed a Crud solution of mine but i was just curious why there seems no alternative to this.
The only things similar i found is Django in Python.

If a CRUD solution is not available having a Form library that works as i expect will be a good base to start, i'll just have to add my
"grid" code for the many-to-many relations.