Set Column Heading for export/print Change any heading for export or print (Added in version 2.6)

You can change the column heading for excel,csv,pdf export and print using this function.

  
                                $pdocrud = new PDOCrud();
                                $pdocrud->exportColHeading("customerName", "Client Name");
                                echo $pdocrud->dbTable("orders")->render();
                                

Orders

Showing 1 to 10 of 133 entries

# ID Order no Order date Customer name Order amount Order status Actions
1 74 24386 2016-09-08 Cooper Jensen 70 Completed
2 75 49890 2016-09-08 Deacon Tyson 27 Completed
3 76 42911 2016-09-08 Cooper Jensen 24 Completed
4 77 75674 2016-09-08 Cooper Jensen 39 Completed
5 79 37102 2016-09-08 7 Completed
6 80 74040 2016-09-08 59 Completed
7 81 89592 2016-09-08 76 Completed
8 82 84334 2016-09-08 4 Completed
9 83 91414 2016-09-08 Kelly Garcia 91 Completed
10 84 89834 2016-09-08 Aubrey Leblanc 41 Completed
# ID Order no Order date Customer name Order amount Order status Actions