Jump to content

Fatal error: Cannot access empty property in /.../application/libraries/Grocery_CRUD.php on line 1540

view Grocery_CRUD.php

  • Please log in to reply
1 reply to this topic

#1 Vole Hare

Vole Hare


  • Members
  • Pip
  • 1 posts

Posted 06 September 2013 - 07:28 AM



When i use $crud -> set_table(table_name);


* table_name is a "view"

I got a error message "Fatal error: Cannot access empty property in /.../application/libraries/Grocery_CRUD.php on line 1540"

I think maybe the point is there is no primary key or index on view?

How can i resolve it?


#2 davidoster


    Grocery CRUD Ninja

  • Advanced Member
  • PipPipPip
  • 1,068 posts
  • LocationAthens, Greece

Posted 06 September 2013 - 09:03 AM

Hello and welcome to the forums Vole Hare.

Actually Grocery CRUD can't use a view as a table unless you set the primary key!

Check here.


Internally GC library uses the PK to do most of its indexing, that's why.



rtfm_small.jpg---!!!Please read these guidelines before asking to the forums!!!---



David Oster aka George Pasparakis,

Also tagged with one or more of these keywords: view, Grocery_CRUD.php

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users