Form Fields Separate form fields for insert and edit form (Addded in v 3.3)

Now you can define the separate form fields for insert and edit forms. As you know, formFields function is used to set both insert and edit form fields but if you want separate fields for the edit form, you can use editFormFields function to define the fields for edit form. If editFormFields function is not defined then formFields function fields will be used for insert and edit form like previously.

  
                                $pdocrud = new PDOCrud(); 
                                //set which form fields to display. It sets fields for both insert and edit form.
                                $pdocrud->formFields(array("first_name","last_name","Address")); // function to set form fields in both insert and edit
                                //If you want seperate fields for edit form then insert form, you can set using below function. 
                                $pdocrud->editFormFields(array("first_name","Address"));//added in v 3.3

                                echo $pdocrud->dbTable("employee")->render();
                                

Employee

Showing 1 to 10 of 72 entries

# Id First name Last name Address City State Zip Actions
1 129 San James 101 main St Denver CO 76556
2 125 Yves222 Goulin 6 rue de Vienne 75008 Paris Paris1 Paris 75008
3 123 Yves Goulin 6 rue de Vienne Paris Paris 75008
4 121 Jaroslav Rohal Trnavska cesta 74/D Bratislava Slovensk√° republika 82102
5 126 Bill Smith 1234 Main Sd ca 85978
6 127 dasdas dasdas green ln ave dsad asdas dasd
7 35 Lanaa Englanda 576-4991 Enim Av.a Johnstowna FLa 72504a
8 36 Cassandra Graves 87987 1951 Turpis. Street Dickinson MS 14187
9 38 Kuame Huffman 793-1081 In, Av. South El Monte MA 80857
10 39 Xenos Clarke 437-3387 Arcu Road Newburgh NV 05780
# Id First name Last name Address City State Zip Actions