![]() |
grocerycrud - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: External Resources (https://forum.codeigniter.com/forumdisplay.php?fid=7) +--- Forum: Addins (https://forum.codeigniter.com/forumdisplay.php?fid=13) +--- Thread: grocerycrud (/showthread.php?tid=65202) |
grocerycrud - davy_yg - 05-14-2016 Hello, I would like to know if this free download grocerycrud has any database ? I have check the code and wonder if there is any? The model is empty. But in the controller it loads the databases. http://www.grocerycrud.com/image-crud controllers/images_examples.php PHP Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); Please help me understand the program? Second, can anyone recommend me a good tutorial to create my own library with CI ? Start with the simple one. Thanks in advance. RE: grocerycrud - twpmarketing - 05-14-2016 (05-14-2016, 04:53 AM)davy_yg Wrote: ... This code loads the database LIBRARY, NOT the database itself. RE: grocerycrud - Blair2004 - 05-18-2016 You must create your database, it's not like Post Type on WP RE: grocerycrud - nealsv - 05-31-2016 Grocery CRUD is a tool which create a CREAD / READ / UPDATE / DELETE field by using a given table, or some enhancements using the built in callbacks. To use Grocery CRUD you have to create a controller, and insert something like this in a public function. $crud = new grocery_CRUD(); $crud->set_table('MYTABLENAME'); $crud->set_subject('MYTABLENAME'); $output = $crud->render(); ( note: make sure you've properly made some views etc. ) On how to make your own library, well, it's actually quite well documented in the CI user guide. You can find it at http://www.codeigniter.com/user_guide/general/creating_libraries.html |