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
1 answer

Js autoload function is not working on flexigrid

Well... I am using flexigrid and grocery crud and i am trying to autoload table with js function. I have followed these steps to do this but it isn't working. Table should auto refresh each 5 seconds when something new is added. What am i doing…
Jose
  • 87
  • 1
  • 8
2
votes
2 answers

Cannot get last inserted id to autofill form field

I'm am unable to get last inserted id with codeigniter and grocery crud and then pass them to autofill a field. How can I do that? I'm trying to solve with a function returning id and passing by the hidden field. Post edited. Everything in the…
Jose
  • 87
  • 1
  • 8
2
votes
1 answer

Grocery CRUD and Codeigniter upload file not working.

1st. This is my 1st time using this plugin! I created upload field : $this->grocery_crud->set_field_upload('img_holder','assets/uploads/files'); This is ment for main image of article, but when i press it, i can choose file, it starts uploading…
FTWwings
  • 105
  • 9
2
votes
1 answer

Grocery Crud display image from another table

I am trying to display a image in grocery crud edit from another table. Have provided the relation it is just displaying the file name and not the image. Below is my code let me know where I need to correct. Also don't want to update the image in my…
Kanted
  • 169
  • 1
  • 12
2
votes
1 answer

Upload file to server outside codeigniter path

I am trying to move file outside Codeigniter path like "/home/uploads" using move_uploaded_file or copy but both method doesn't work! I uploaded the files by using Grocery Crud library & tried to move file using callback_after_upload. in Grocery…
Abu Yousef
  • 570
  • 3
  • 21
2
votes
1 answer

Default value of Grocery CRUD datetime input?

This answer is great! everything works fine with the datepicker. But I have a problem with datetime-picker. as I see from another datetime field (without default value), the class used by that field defined as datetime-input. So I tried to use…
Darryl RN
  • 7,432
  • 4
  • 26
  • 46
2
votes
0 answers

Grocery CRUD: To change the integer time to a timestamp when state=Read

While using CRUD, I have a database field "created"(dataType=>integer). When state='list' the following code converts the integer to date format and display: $crud->callback_column('created', array($this,'date_display')); //where date_display…
2
votes
1 answer

set_relation_n_n with "Not in" in grocery Crud

I have one relation n to n, and it's working fine but I need filter with not in . please see the code below $crud ->set_relation_n_n('Productos', 'donaciones_productos', 'productos', 'donaciones_id', 'productos_id',…
VhsPiceros
  • 410
  • 1
  • 8
  • 17
2
votes
2 answers

Set relations on GroceryCRUD with Codeigniter

I am working on a projecj with codeigniter, and it's my first time using GroceryCRUD, and I need to make that a patient can have any number of reports, I have this on my database. Where idpatients is the foreign key. I am using this on my…
Ricardo Rios
  • 255
  • 7
  • 23
2
votes
1 answer

set_field_upload - how to custom multi image upload in grocery_CRUD library on codeigniter?

I need to upload multiple image from grocery_CRUD Library on codeigniter framework. I need step by step process ! $crud->set_field_upload('image','assets/uploads/products'); $crud->callback_after_upload(array($this,'resize_after_upload')); Now this…
ram4587kmr
  • 41
  • 2
  • 8
2
votes
1 answer

Grocery Crud where date greater than today

I'm trying to display results in Grocery Crud where the posted date is greater than today, with no luck. Here is what I tried: $crud->where('status','open'); $crud->or_where('posting_date','<'.$now); The table returns results, but it just returns…
mdarling
  • 77
  • 1
  • 13
2
votes
2 answers

Setting a default value of control in Grocery CRUD + Code Igniter

I need to set a default value of the field in Grocery CRUD. Basically, the respective data column IsActive is set to NOT NULL. I need to see that while adding the record, IsActive should be set to true or false but not NULL by default. I looked for…
Cyberpks
  • 1,401
  • 6
  • 21
  • 51
2
votes
2 answers

Custom dropdown with GroceryCrud?

how can I add a custom dropdown with GroceryCrud? I have the following mysql table: CREATE TABLE IF NOT EXISTS `clients` ( `clientId` int(10) unsigned NOT NULL AUTO_INCREMENT, `clientName` varchar(100) COLLATE utf8_unicode_ci NOT NULL, `cif`…
SaikeN
  • 23
  • 4
2
votes
1 answer

Grocery CRUD: callback functions does not work

I have tried several times but it seems that none of the callback functions work with my code. Here is the method that I am calling grocery crud public function show_courses() { $crud = new grocery_CRUD(); $crud->set_table('course'); …
manu
  • 107
  • 3
  • 10
2
votes
1 answer

codeigniter, integrate grocery grud with postgresql

Grocery crud for codeigniter works only with mysql db. To integrate with postgresql recommended to use set_model() to set the model which extends original model and overwrite the functions which gives error. I did the same, but now it gives me…
jakentus
  • 896
  • 12
  • 22
1 2
3
23 24