How does one access the CI distinct method from GC?
I tried adding in a new function into GC but I get error that it cannot find?
Any suggestions?
Thanks
⚠ 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 is an archived forum. ⚠
Posted 07 March 2013 - 19:04 PM
How does one access the CI distinct method from GC?
I tried adding in a new function into GC but I get error that it cannot find?
Any suggestions?
Thanks
Posted 07 March 2013 - 23:03 PM
You need to extend the default Grocery CRUD model and there make any custom database handling.
View here for more information: http://www.grocerycrud.com/documentation/options_functions/set_model
Posted 07 March 2013 - 23:59 PM
Thanks.. I will take a look ..
Brian
Posted 08 March 2013 - 00:39 AM
Any suggestions? -Thanks
Here is the error message I get.
Fatal error: Call to undefined method grocery_CRUD::distinct() in /CodeIgniter_2.1.3/application/controllers/examples.php on line 94
Here is my set up for application/controllers/examples.php
Here is my my_grocery_model.php
Posted 08 March 2013 - 10:47 AM
This is how you call the model's functions,
//extract from a project of mine
Posted 08 March 2013 - 22:22 PM
Thanks for the help. But I still cannot get it to work.
Brian