This will save me a lot of simple in my admin end of the site. Just out of curiosity before I download, this the view that is produced in an iframe like the demos, or did you just put the examples in iframes?
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
December 28, 2010 6:59pm
Subscribe [10]#16 / Jan 18, 2011 8:29pm
This will save me a lot of simple in my admin end of the site. Just out of curiosity before I download, this the view that is produced in an iframe like the demos, or did you just put the examples in iframes?
#17 / Jan 19, 2011 1:43am
With those few line of codes you create all the crud that you just see. Its a package that you copy it to your codeigniter project. All the examples are in the controller examples.php so you will not have any problem. Actually I just realized that the example_9 is missing! I will update that ASAP.
#18 / Jan 19, 2011 12:17pm
I like this plugin! Thanks.
Hmm, can you add more than one relationship? It seems than only the last one works.
#19 / Jan 19, 2011 12:31pm
Yes of course you can. You can add as many as you want. If 3 fields have relationship, you can add 3 relations. Try it 😉
#20 / Jan 22, 2011 7:15am
The My_Output.php posted here now works very well on Windows but the earlier My_Output.php works well in Linux.
I have the below function working very well. In this table i have a column called description(TEXT) where when adding a description, i want a way the first 20 words from description are formatted (strip special characters) and inserted in a column called except(TEXT) in the same table. How can i have this in this function or do i have to write a new function to achieve this?
function codes() { $this->crud->set_table('codes'); $this->crud->set_operations(array('add','edit','delete')); $this->crud->get(); }This CRUD is very well done!
-K
here is your answer 😊. Its tested that it works. But you first need to donwload the file: crud.php and replace your crud.php file. In your case it is on C:\xampp\htdocs\CI\system\application\libraries\crud.php . I’m working with callbacks. I am still working on it, that’s why I don’t have it in my version 0.8. Still want to write some documentation when I have time.
function codes()
{
$this->crud->set_table('codes');
$this->crud->set_subject('Code');
$this->crud->set_fields('description');
$this->crud->callback_after_add(array($this,'add_except'));
$this->crud->callback_after_edit(array($this,'add_except'));
$this->crud->set_operations(array('add','edit','delete'));
$this->crud->get();
}
function add_except($my_id, $post_array)
{
$this->load->helper('text');
$this->db->update('codes',array('except' => word_limiter(strip_tags($post_array['description']),20)),array('id' => $my_id));
}#21 / Jan 24, 2011 9:17am
this can be used in CI 1.5.4 ?
#22 / Jan 24, 2011 1:43pm
It is fully tested at codeigniter 1.7.x . I don’t know if it will play in your version. You can try it though and if there is not an error then everything works fine. Probably it works with your version but I didn’t try it.
#23 / Feb 17, 2011 6:19pm
Just to know. The grocery CRUD does NOT work in CI 2.0.0 , I am still working on the documentation…
#24 / Feb 17, 2011 10:16pm
Any idea when, or if, you’ll upgrade it to work with 2.0? And is there a way to use it with DataMapper ORM?
#25 / Feb 18, 2011 1:19pm
I will upgrade it and I suppose it will be in a month. I know it’s simple to upgrade but I am still working on the views of CRUD . Probably the version 0.9 I will fix it and for CI 2.0 . For DataMapper ORM and other “plugins” of codeigniter perhaps I will make it work after the version 1.0
#26 / Feb 18, 2011 1:29pm
Wow, Grocery CRUD and Datamapper ORM integrated will be a site to behold. Imagine if H-MVC and Tank Auth came along for the party too!
#27 / Feb 18, 2011 4:02pm
Wow, Grocery CRUD and Datamapper ORM integrated will be a site to behold. Imagine if H-MVC and Tank Auth came along for the party too!
Maybe. I don’t about the Tank Auth part because I haven’t seen an Auth/ACL system here yet that plays nice with DataMapper. But I agree about the rest definitely.
#28 / Feb 21, 2011 4:49am
Any idea when, or if, you’ll upgrade it to work with 2.0? And is there a way to use it with DataMapper ORM?
I create a working copy for CI. 2.0 . I created with the package of codeigniter is pretty awesome!!! You can downloaded from my website here
#29 / Feb 21, 2011 2:39pm
The Video link is not working.
#30 / Feb 21, 2011 3:16pm
The Video link is not working.
I know. I don’t have enough time. I’m working now on documentation. When I find time I will complete my website.