I am trying to use the demo data base and the nested table example for orders and order details.
I thought it was supposed to show a list of orders and when you clicked edit on a specific order it would show the order details. But all I get is order details and not a list of orders. Code is as follows
<?php
include "connectionXcrudDemo.php";
include XCRUD_LOCATION;
$xcrud = Xcrud::get_instance();
$xcrud->table('orders'); // main table
$xcrud->nested_table('products_list','orderNumber','orderdetails','orderNumber');
$products_list = $xcrud = Xcrud::get_instance('products_list');
echo $xcrud->render();
?>
I thought it was supposed to show a list of orders and when you clicked edit on a specific order it would show the order details. But all I get is order details and not a list of orders. Code is as follows
<?php
include "connectionXcrudDemo.php";
include XCRUD_LOCATION;
$xcrud = Xcrud::get_instance();
$xcrud->table('orders'); // main table
$xcrud->nested_table('products_list','orderNumber','orderdetails','orderNumber');
$products_list = $xcrud = Xcrud::get_instance('products_list');
echo $xcrud->render();
?>