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

Grocery-CRUD and form validation

I'm using grocery crud and need to validate form fields. Following is code from Controller... $crud = new grocery_CRUD(); $this->config->set_item('grocery_crud_file_upload_allow_file_types','gif|jpeg|jpg|png'); /*set theme and table*/ …
N D Thokare
  • 1,703
  • 6
  • 35
  • 57
0
votes
1 answer

Codeigniter data passing to landing page, but not to other page

I am trying to use image CRUD in Codeigniter. The following is what I have working: Controller: public function view($page = 'home') { $image_crud = new image_CRUD(); $image_crud->unset_upload(); $image_crud->unset_delete(); …
Ray
  • 13
  • 2
0
votes
1 answer

Grocery Crud default value after add

I need to add default images to post, if user do not select an image to upload. Field to load the image optional. How can i make it? I use this controller. public function news() { $cur_user_id['user_id'] =…
Mihail Kuznetsov
  • 323
  • 5
  • 22
0
votes
2 answers

Grocery crud installation and codeigniter main.php file not working

Please help! I'm trying to install grocery crud using codeigniter and I'm using wamp. I can't seem to correct this error: A Database Error Occurred Unable to select the specified database: archives_collection Filename: …
0
votes
1 answer

use where_in in grocery crud as codeigniter

I want to use where_in() method as codeigniter , I tried to define it but not working correctly.please help. I added this code in grocery crud library public function where_in($key = NULL, $values = array()) { $this->where_in[]…
MYoussef
  • 144
  • 9
0
votes
1 answer

Resize image before insert - GROCERY CRUD/CODE IGNITER

I'm attempting to resize my images on upload through Grocery Crud, but having some difficulty as I'm not sure how to access what is in the POST array so I can use it in my code. Here is the section of my controller that does the image uploading…
gazrolo4
  • 161
  • 2
  • 17
0
votes
1 answer

How to combine and & or operators in grocery crud

I am using codeigniter and grocerycrud, I want to set a table with grocerycrud in this way: SELECT * FROM `dashboard`.`medidas_ludlum` where FK_ludlum='190.26.88.131' and date>= '2014-03-04 09:40:00' and date<= '2014-03-05 09:40:00' and…
Altrazar
  • 105
  • 2
  • 10
0
votes
1 answer

How to allow to adsense ads to work, note that global xss_clean is enabled?

As in the title. I want to allow to adsense ads to work, I'm use codeigniter with grocery-crud in my work. The idea is I will add adsense code to field, then to store it in database, and then will shows in the pages of site. The problem is when…
Lion King
  • 32,851
  • 25
  • 81
  • 143
0
votes
1 answer

How to change the default redirect after click on save button when you add data?

Everyone know, when add data by using grocery-crud, at end of the page there is a button named save to save the data in database. This save button when clicked, save the data, then redirect to the data list page. Now I'm use $crud->unset_list()…
Lion King
  • 32,851
  • 25
  • 81
  • 143
0
votes
0 answers

Grocery crud issue with blank space in primary key

I am using code igniter and Grocery CRUD, however when a register has blank spaces in its primary key (ie Phantom Dancer) the view or edit method from grocery crud doesnt load the field values, but if I change that name for Phantom_Dancer everything…
Altrazar
  • 105
  • 2
  • 10
0
votes
1 answer

install the text editor ckeditor with grocery crud

I want to install ckeditor with grocery crud. Can anyone please tell me how to install it in grocery CRUD. Please help :( The current website text editor is TinyMCE but the problem with it that it has no image upload
Iman
  • 73
  • 3
  • 9
0
votes
1 answer

How to add an extra column to data table for serializing the data in grocery crud

I am very new to grocery crud. I want to add an extra column which will be for serial number and it will not change on search and pagination. I want it like JQgrid. Is it possible? Please help me.
0
votes
1 answer

Code Igniter & Grocery Crud error - On the state "update" you must have post data

I've got an existing project in code igniter and wanted to start using grocery crud with it. I'm running it on a recent install of wamp, php 5.4, apache 2.4.4. I followed the basic set up, copy and pasting the files over to my code igniter directory…
haakym
  • 12,050
  • 12
  • 70
  • 98
0
votes
1 answer

how to insert data after some some logical operation in grocery crud

i am very new to grocery crud.i have facing some problem with logical operation on insert_before_callback i have a product table,when i will sell a product it will check the availability of the product.if the its available then it will insert it to…
Rahat Islam Khan
  • 125
  • 1
  • 6
  • 25
0
votes
1 answer

How to implement a relation using grocery crud in codeigniter?

I'm using codeigniter and grocery crud. I'm having a trouble in implementing a dropdownlist. When I add a data in the deduction table what I want to do is display all employee names which can be determined by having an entry in employee table. Once…
doylefelix
  • 117
  • 3
  • 12