⚠ In case you've missed it we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This forum is read-only and soon will be archived. ⚠


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

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 06 September 2013 - 07:28 AM

Hello,

 

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

davidoster

    Grocery CRUD Ninja

  • Advanced Member
  • PipPipPip
  • 1,068 posts

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.







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