Traditionally I have made pretty heavy use of views in my databases to denormalise data to display to users.
Is it possible to use grocery_CRUD to display data from a database view (then disable all operations with unset_operations)?
When I try it I get an error about primary keys. Am I missing something?
Is it possible to use grocery_CRUD to display data from a view?
Started by kenilik, 16 December 2012 - 01:05 AM
- Single Page
Posted 16 December 2012 - 01:05 AM
Posted 21 December 2012 - 14:54 PM
I am no expert, but it appears that a view does not have a primary key, so you will need to set it with something like the following line:
$crud->set_primary_key('id');