Can CRUD operated on SQL Views !? Why did it fail ...DB View open issue
Posted 28 April 2012 - 11:06 PM
I have created a View and was trying to use GCRUD to view it only using $crud->unset_operations();
$crud->columns( 'tik_reference', 'tik_status',
// Enable As Ready only
$output = $crud->render();
I keep getting the following error though in an checkup all fields are OK in this test view (I've made it to show ONLY 2 rows)!
Any clue ??
Fatal error: Cannot access empty property in /var/www/html/TNDEV/application/libraries/grocery_crud.php on line 1298
Posted 30 April 2012 - 05:54 PM
Posted 01 March 2013 - 06:26 AM
Hi, can support VIEW now？
There are some error in $data->primary_key, when i use VIEW.Because there is no primary_key in VIEW.
So i judge the state of $data->primary_key,if it is false,don't use it.
I will check to see if there is a quick fix for that. Though grocery CRUD isn't tested and not support yet SQL views.
Posted 04 March 2013 - 09:14 AM
I have found another way to use VIEW.
You can set primary_key by set_primary_key
and this key must be unique.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users