Welcome Guest, Not a member yet? Register   Sign In
v 1.3.3 grocery CRUD - an automatic Codeigniter CRUD

[eluser]rtan[/eluser]
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.

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

[eluser]web-johnny[/eluser]
[quote author="yepwingtim" date="1328824187"]Is it possible to have a actual checkbox layout rather than the bloated two table multi check interface thing?[/quote]

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.

[eluser]MatthewSchenker[/eluser]
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

[eluser]goFrendiAsgard[/eluser]
I think there is no way doing that, since groceryCRUD has it's own form (but I don't exactly know Big Grin).
If you want to validate the data, you might use callback

[eluser]web-johnny[/eluser]
[quote author="MatthewSchenker" date="1328966467"]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[/quote]
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:

Code:
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.

[eluser]MatthewSchenker[/eluser]
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

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

[eluser]web-johnny[/eluser]
[quote author="MatthewSchenker" date="1329071899"]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[/quote]

I totally believe that it's more powerful by NOT using form_helper. The good thing about grocery CRUD is that time after time its getting more stable as it uses less and less code from CI .
This is very useful for futures updates. For example even if major changes will be in Codeigniter , grocery CRUD is still stable and update-able without any problem. That's the secret that is still compatible with 1.7.x ;-)
The callbacks are pretty cool idea and I will try to have more documentation, so users can use them easily without any doubt.

[eluser]Pieter[/eluser]
Hello web-johnny,

Wow, I just discovered Grocery CRUD. It looks great!
I have one question about relations. Is it possible to use set_relation() when the name of the field isn't the same. Example:

Table Users:
-----------
id
username
password


Table Profiles:
------------
id
user_id
first_name
last_name


Can I relate the "id" field from the Users table with "user_id" field from the Profiles table?
(It's an existing project so renaming "id" to "user_id" is a bit difficult).
Thanks.




Theme © iAndrew 2016 - Forum software by © MyBB