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
2
votes
2 answers

how to change grocery crud template for RWD?

I did my application in codeigniter using grocery crud lib. It's work fine. Now, I want to change it in RWD (Responsive Website Design) mode. I already did RWD in my root CSS file it's work fine. But I used grocery crud in my admin side, I want to…
ganbca2003
  • 45
  • 2
  • 7
2
votes
1 answer

Grocery-crud add_action how to use the pk?

see this article of the website of grocery-crud: http://www.grocerycrud.com/documentation/options_functions/add_action for testing I used this line: $crud->add_action('Smileys', 'http://www.grocerycrud.com/assets/uploads/general/smiley.png',…
Ralph Schipper
  • 701
  • 2
  • 12
  • 24
2
votes
2 answers

How does the GroceryCRUD callback functions work?

I need to do some customization to the CRUD. Basically i need to upload multiple files in an Add or Edit Action, and all i'm going to save in the database is the url of the folder that will contain the images. I have been searching the forum, and it…
BernalCarlos
  • 936
  • 3
  • 12
  • 25
2
votes
1 answer

grocery crud multiselect field

No problem to use this function 'multiselect field' which show on this website: http://www.grocerycrud.com/documentation/options_functions/field_type $crud->field_type('fruits','multiselect', array( "1" => "banana", "2" =>…
user1884324
  • 693
  • 5
  • 14
  • 21
2
votes
2 answers

Codeigniter and Grocery CRUD - Fatal error: Cannot access empty property

I get the "Fatal error: Cannot access empty property in /Applications/XAMPP/xamppfiles/htdocs/cityland/application/libraries/Grocery_CRUD.php on line 1540" error in this code public function projectAmenities() { $crud = new grocery_CRUD(); …
Katherine
  • 573
  • 4
  • 17
  • 43
2
votes
1 answer

Pros and cons of using grocery curd library in codeigniter framework.

I wanna integrate grocery curd library in my codeigniter framework. Please any one help me what are the pros and cons of this library. Is it flexible, I am going to use multiple table joining and some bigger queries.
Koushik Rout
  • 179
  • 1
  • 4
  • 12
2
votes
2 answers

GroceryCrud validation custom messages

I have one question.. How to validate fields data with custom error messages? I use codeigniter, and grocery crud with twitter bootstrap theme, and do some field required, for example: $crud->set_rules('first_name', 'NAME', 'required'); OR…
Myroslav
  • 443
  • 1
  • 5
  • 11
2
votes
0 answers

How to filter a relation_n_n multiselect via a dropdown relation field

I have four tables: items *item_id* vendor_id title vendors *vendor_id* title vendor_locations *location_id* title vendors_vendor_locations vendor_id vendor_location_id priority This is my…
Riebel
  • 789
  • 2
  • 10
  • 22
2
votes
0 answers

crud trigger next button calendar

I have a site developed in crud with codeigniter. I would when I enter into a determinate function in my view to trigger the button dhx_cal_next_button that goes on of a week for example. I have tried but nothing…
Alessandro Minoccheri
  • 35,521
  • 22
  • 122
  • 171
2
votes
3 answers

Two field as one unique field in Grocery Crud

I have one problem in GroceryCrud. I want to insert the data in one table. Table is like this: id, card_no, site_code, site_no card_no is unique and i have implemented it. However; my problem is that site_code and site_no should be unique only is…
Rinor Veseli
  • 116
  • 1
  • 6
2
votes
2 answers

How to show data in input field when select data at dropdown in Grocery Crud and Codeigniter

In Grocery Crud and Codeigniter , Basically i want to show data from one table(such as a_tbl) when select data or id_no(id_no will get from a_tbl) in dropdown then Name and current posting data will take in input field from table(such as a_tbl) ,…
MD. ABDUL Halim
  • 712
  • 3
  • 11
  • 32
2
votes
1 answer

Adding a 'fake' field to grocerycrud add/edit form

On my users table I have a 128 char 'hashed_password' field. In my User_model I have functions to encrypt and decrypt the password. When encrypting I randomly generate a salt and it gets stored in the first 64 chars of hashed_password field. The…
Kenilik
  • 366
  • 7
  • 16
2
votes
1 answer

Grocery_Crud not visible. Need to understand how to set filer

I'm having trouble understanding how to place grocery_CRUD into a view. My function in my control looks like this: function folio() { $crud = new grocery_CRUD(); $crud->set_table('rfid'); $crud->columns('rfid','timestamp'); $data['output'] =…
Frank Barcenas
  • 611
  • 1
  • 5
  • 18
2
votes
0 answers

Natural Sort Grocery Crud results

Grocery Crud provides the function order_by: void order_by(mixed $order_by [, string $direction] ) However the field I need to sort is a varchar and I need to perform natural sorting. The MySQL query which correctly sorts the list is as…
SO_tourist
  • 430
  • 6
  • 13
2
votes
1 answer

Grocery CRUD not sorting or searching results and set_model values are not paginated

I’m using Grocery CRUD to display my search results. The results are displayed properly but the search and sort by columns doesn’t seem to be working. Secondly ..im using the set_model to use my model to grab data.. function get_list() { $name =…
LiveEn
  • 3,193
  • 12
  • 59
  • 104