Questions tagged [grocery-crud]

Grocery CRUD is an open-source CRUD implementation for the CodeIgniter PHP framework.

Grocery CRUD is an open-source CRUD implementation for the CodeIgniter PHP framework.

Website

http://www.grocerycrud.com/

Function Documentation

http://www.grocerycrud.com/documentation

Usage Examples

Other examples

356 questions
0
votes
1 answer

How to access the session variables from the add.php in grocery crud?

I modified the add.php in grocery crud and add an iframe that shows the image crud. Now i need to add a conditional statement so that this iframe will show for some specific tables only. I set a flag in the controller for this. And my problem now is…
Katherine
  • 573
  • 4
  • 17
  • 43
0
votes
3 answers

Grocery crud : How to get the current id that had been used when editing and viewing a record?

How to get the current id that had been used when editing and viewing a record? I am currently following the instruction by Alfonso Secas that he posted in this…
Katherine
  • 573
  • 4
  • 17
  • 43
0
votes
0 answers

set_relation_n_n: how to use other field instead of the primary_key to the 4th data

I'm working on a CodeIgniter project that uses grocery-crud. I'm using this code: $crud->set_table('dtr'); $crud->set_relation_n_n('branch', 'users_branches', 'branches', 'user_id', 'branch_id', 'name'); In SQL, its equivalent is this: SELECT…
ITWitch
  • 1,729
  • 5
  • 20
  • 38
0
votes
1 answer

grocery crud with AES Encryption

How to match data in table using mysql AES decrypt in grocery CRUD ? Error getting on crud set realtion as follows: $crud->set_relation(AES_DECRYPT(departments.department_id,'key'),'users.department_id','deparmtnet_name'); Not Found:…
0
votes
1 answer

grocery CRUD list thumbnail size

Is there a way to adjust the size of gorcery CRUD's list thumbnails? The way it is now it's just silly big, and breaks the table flow. If possible, it would be nice to have a PHP solution or grocery CRUD setting for this; if not - a CSS rule would…
jOpacic
  • 9,453
  • 12
  • 36
  • 58
0
votes
1 answer

How can I delete a specific cookie prefix with PHP or JavaScript?

I am using codeigniter / grocerycrud, and when selecting a sort column, it remembers this order giving me the only option to re-sort the other direction (at least within the expiration date). I would like to create a button that deletes only the…
Shane
  • 1,629
  • 3
  • 23
  • 50
0
votes
1 answer

highlight text in Grocery Crud

I'd like to highlight text in a specific field Estado(state) currently it has 3 states, "activo", "inactivo" and "pendiente" , when it matchs to pendiente i want to highlight the text changing the color to red, but no idea where to do the…
Rodrigo Cabrera
  • 164
  • 3
  • 17
0
votes
1 answer

Grocery CRUD default value on GET

Link to my page where grocery CRUD instance is, for example index.php/users. When I add a new user, URL of the form is index.php/users/index/add, and I use link from external page, that points directly to http://domain.com/index.php/users/index/add…
jOpacic
  • 9,453
  • 12
  • 36
  • 58
0
votes
0 answers

CSS of Grocery CRUD not loading

I've installed Grocery-Crud and it works! But there is no any css files were loaded on page. I have standard code grocery_crud gives to users, so this is what I see, when I want to see page's code:
Maria
  • 77
  • 1
  • 9
0
votes
1 answer

Grocery CRUD CodeIgniter - how to add link for each row .

I'm triying to implement Grocery-Crud for codeigniter, and I didn't have troubles until i needed to add a link for each row in my table . . . I need to add a column with links to see the details of each row
0
votes
1 answer

How make CRUD of one to many in grocerycrud?

I have tables like this user id ,name user_email id ,user_id,email user may have multiple emails.How can i do CRUD operation of these type of data in codeigniter grocerycrud?I tried this but not working.
open source guy
  • 2,727
  • 8
  • 38
  • 61
0
votes
1 answer

set_relation not working in grocery crud

I have a controller like this: function index() { $crud = new grocery_CRUD(); $crud->set_relation('name','parttype','type'); $crud->set_table('part'); $crud->set_subject('Items'); $output = $crud->render(); …
beNerd
  • 3,314
  • 6
  • 54
  • 92
0
votes
2 answers

Add multiple values in where clause in grocery crud

I want to add multiple values in where clause. ------------As In Sql , we do like this------------------ SELECT column_name(s) FROM table_name WHERE column_name IN (value1,value2,...) How to use this in grocery crud?
abhishek02
  • 3
  • 1
  • 6
0
votes
1 answer

Grocery crud delete function in edit form

Would it be possible to put a delete function when in edit page? I want to add it inline to the other buttons at the bottom of the edit form.
Puge
  • 1
  • 1
0
votes
2 answers

change custom button action in grocery crud

I have the code that adds two custom buttons into grocerycrud: try{ $crud = new grocery_CRUD(); $crud->set_table('my_table_1')->set_subject('something'); $crud->add_action('food 1',…
edgarmtze
  • 24,683
  • 80
  • 235
  • 386