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…
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…
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…
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…
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…
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…
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…
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',…
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…
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…
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…
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…
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`…
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');
…
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…