Columns and fields Minimal theme
Select only needed columns and fields
HIDE CODE
SHOW CODE
<?php
$xcrud = Xcrud::get_instance();
$xcrud->table('customers');
$xcrud->columns('customerName,phone,city,country'); // columns in grid
$xcrud->fields('customerName,creditLimit,salesRepEmployeeNumber'); // fields in details
echo $xcrud->render();
?>
Customers
Customers
# | Customername | Phone | City | Country | |
1 | Volvo Model Replicas, Co | 0921-12 3555 | Luleå | Sweden | |
2 | Saveley & Henriot, Co. | 78.32.5555 | Lyon | France | |
3 | Dragon Souveniers, Ltd. | 35999844815 | Singapore | Singapore | |
4 | Muscle Machine Inc | 2125557413 | NYC | USA | |
5 | Technics Stores Inc. | 6505556809 | Burlingame | USA | |
6 | Herkku Gifts | +47 2267 3215 | Bergen | Norway | |
7 | Joe | 2035557845 | New Haven | USA | |
8 | Porto Imports Co. | (1) 356-5555 | Lisboa | Portugal | |
9 | Daedalus Designs Imports | 20.16.1555 | Lille | France | |
10 | La Corne D'abondance, Co. | (1) 42.34.2555 | Paris | France | |