Part of the EllisLab Network
   
28 of 32
28
v 1.2.2 grocery CRUD - an automatic Codeigniter CRUD
Posted: 31 January 2012 03:41 PM   [ Ignore ]   [ # 271 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  229
Joined  12-18-2010
fdias - 31 January 2012 12:02 PM

I’ve been using Grocery Crud for the past couple of months and have to say it’s amazing. The developer did a great job and it not only does the job well but also looks great visually.

Thanks a lot for your hard work!

Let me know if I can help.

Thanks @fdias . This is actually a great post! Similar posts are usually just a beginning phrase of ... BUT I have this problem e.t.c. e.t.c.

I really appreciate it.

Thanks

 Signature 

- grocery CRUD - a codeigniter CRUD library - user guide and download
- grocery CRUD - thread from forum

Profile
 
 
Posted: 03 February 2012 11:18 AM   [ Ignore ]   [ # 272 ]  
Grad Student
Rank
Total Posts:  68
Joined  10-06-2010

I’m working with n-n relationship and get this error:

Error Number1452</p><p>Cannot add or update a child rowa foreign key constraint fails (`nominas`.`asignaciones_has_ntrabajadores`, CONSTRAINT `Ref_07FOREIGN KEY (`idasignacion`) REFERENCES `asignaciones` (`idasignacion`) ON DELETE NO ACTION ON UPDATE NO ACTION)</p><p>INSERT INTO `asignaciones_has_ntrabajadores` (`idasignacion`, `idtrabajador`) VALUES (12'6'

Any advice or help on this?

Also it’s possible to use group_by here?

Profile
 
 
Posted: 04 February 2012 03:24 AM   [ Ignore ]   [ # 273 ]  
Summer Student
Total Posts:  5
Joined  05-10-2011

Hi,

I would like your suggestion regarding including jquery stepy for editing the contents, I have more than 50 fields to edit and need to break them in part preferably with fieldset.

Please advise.

regards.

 Signature 

RT

Profile
 
 
Posted: 09 February 2012 04:49 PM   [ Ignore ]   [ # 274 ]  
Summer Student
Total Posts:  4
Joined  01-10-2012

Is it possible to have a actual checkbox layout rather than the bloated two table multi check interface thing?

Profile
 
 
Posted: 11 February 2012 05:40 AM   [ Ignore ]   [ # 275 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  229
Joined  12-18-2010
yepwingtim - 09 February 2012 04:49 PM

Is it possible to have a actual checkbox layout rather than the bloated two table multi check interface thing?

No this is not able till now. I have change the interface though at the new version 1.1.8 now it’s much more interesting. Have a look of the attached image.

 Signature 

- grocery CRUD - a codeigniter CRUD library - user guide and download
- grocery CRUD - thread from forum

Profile
 
 
Posted: 11 February 2012 08:21 AM   [ Ignore ]   [ # 276 ]  
Grad Student
Avatar
Rank
Total Posts:  47
Joined  02-02-2011

Hi web-johnny,
I’ve been working with GroceryCRUD a bit more.

How do we use the CodeIgniter form helper with GroceryCRUD?  Is this possible?

Thanks,
Matthew

Profile
 
 
Posted: 11 February 2012 08:09 PM   [ Ignore ]   [ # 277 ]  
Grad Student
Avatar
Rank
Total Posts:  63
Joined  08-28-2011

I think there is no way doing that, since groceryCRUD has it’s own form (but I don’t exactly know :D).
If you want to validate the data, you might use callback

 Signature 

Homepage : http://www.getnocms.com
Github page : https://github.com/goFrendiAsgard/No-CMS

A free CodeIgniter based CMS-Framework, It is not just another CMS !!!

Profile
 
 
Posted: 12 February 2012 09:44 AM   [ Ignore ]   [ # 278 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  229
Joined  12-18-2010
MatthewSchenker - 11 February 2012 08:21 AM

Hi web-johnny,
I’ve been working with GroceryCRUD a bit more.

How do we use the CodeIgniter form helper with GroceryCRUD?  Is this possible?

Thanks,
Matthew

Thank you goFrendiAsgard for your answer and yes you are right.
The only way to actually use the form_helper is with the callback_add_field and callback_edit_field. But to tell you the truth I don’t understand why and where to use form_helper for grocery CRUD. An example of using a form helper could be:

function example_callback_add_field(){
    $this
->grocery_crud->set_table('offices');
    
$this->grocery_crud->set_subject('Office');
    
$this->grocery_crud->required_fields('city');
    
$this->grocery_crud->columns('city','country','phone','addressLine1','postalCode');
 
    
$this->grocery_crud->callback_add_field('phone',array($this,'add_field_callback_1'));
 
    
$output $this->grocery_crud->render();
 
    
$this->_example_output($output);
}
 
function add_field_callback_1()
{
    $this
->load->helper('form');
    return 
'+30 '.form_input('phone''');

But I don’t really understand what are you looking for.

 Signature 

- grocery CRUD - a codeigniter CRUD library - user guide and download
- grocery CRUD - thread from forum

Profile
 
 
Posted: 12 February 2012 01:38 PM   [ Ignore ]   [ # 279 ]  
Grad Student
Avatar
Rank
Total Posts:  47
Joined  02-02-2011

Hello web-johnny,
As always, thanks for your great answers!

I’ve been trying various CRUD methods in CodeIgniter, and Grocery CRUD is definitely terrific.  Most of the methods I am reading about involve using the Form Helper.  Just for comparison, I was wondering about Grocery CRUD with this.

Do you think it’s easier and more powerful to just use Grocery CRUD callbacks instead of the CI Form Helper?

Thanks again,
Matthew

Profile
 
 
Posted: 12 February 2012 03:39 PM   [ Ignore ]   [ # 280 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  445
Joined  06-09-2011

It works well with 2.1.0 and using since Friday this week what a great piece save lots of time, thanks @web-johnny

 Signature 

Thanks,

=== Loving CI ===

Profile
 
 
   
28 of 32
28