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 11 entries

# Id First name Last name Address City State Zip Actions
1 208 Sean Ottey 2125 N Girasol Ave Palm Springs California 92262
2 210 John Locke Somewhere on an island LOST LOST XXX
3 211 demouser demouser demouser demouser demouser 000000
4 212 demouser demouser demouser demouser demouser 000000
5 213 asd sad asdsda sad asd asd
6 214 asd sad asdsda sad asd asd
7 215 ajsdkl ajlksd ajksldjal Lima Nose 746531
8 216 ajsdkl ajlksd ajksldjal Lima Nose 746531
9 217 ajsdkl ajlksd ajksldjal Peru Nose 746531
10 219 sagar kadel lauda lasan 9645631298413 31489496
# Id First name Last name Address City State Zip Actions