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

is there mysql operator `both`

I am using CodeIgniter with GroceryCrud, when I am tring to do a search the response is mysql error. the error contains the next message: Error Number: 1064

You have an error in your SQL syntax; check the manual that corresponds to your MySQL…

Wazime
  • 1,423
  • 1
  • 18
  • 26
3
votes
2 answers

Grocery Crud - print post_array on form submit

I found very nice php api last week, Grocery Crud, from examples available here http://www.grocerycrud.com/examples/the-simplest-example , I could create view and its working fine, my question is there are 2 buttons once you edit Update Changes and…
user3637224
  • 585
  • 1
  • 3
  • 22
3
votes
1 answer

How to subtract DateTime in grocery crud?

The function that I need to do deals with DateTime. public function dtr() { try { $crud = new grocery_CRUD(); $crud->set_theme('flexigrid'); $crud->set_table('dtr'); $crud->set_subject('Employee DTR'); …
doylefelix
  • 117
  • 3
  • 12
3
votes
1 answer

Grocery CRUD relation n_n - how to complete an other field in relational table

I have an application where I use Codeigniter + Grocery CRUD. I was making a "n_n" relation , but in table that store the relation there is a third field. Bellow my DB structure: Grocery CRUD allows me to select the socialmedia as displayed…
Alessandro Garcez
  • 728
  • 2
  • 6
  • 25
3
votes
1 answer

Grocery CRUD ajax performance

I'm using Grocery Crud(1.4.1) with CI 2.1.4. The Grocery Crud worked in my local environment and our internal staging server. However, when we deployed the project to the live server, we ran into the performance issue. The pages which contains…
Peng
  • 345
  • 3
  • 9
3
votes
1 answer

How to pass arguments to a function that renders image crud

//inside admin controller public function pictures($table) { $image = new image_CRUD(); $image -> set_table($table) -> set_url_field('name') -> set_title_field('title') //-> …
Bishal Paudel
  • 1,896
  • 2
  • 21
  • 28
3
votes
2 answers

set relation grocery crud error

I have 2 tables CREATE TABLE `tbl_patient` ( id_patient INTEGER NOT NULL PRIMARY KEY AUTO_INCREMENT, name VARCHAR(25) NOT NULL DEFAULT "not available", att1 VARCHAR(5 ) NOT NULL DEFAULT "att1", att2 …
edgarmtze
  • 24,683
  • 80
  • 235
  • 386
3
votes
2 answers

No success message when adding/updating/go back to the list in grocery crud

I'm using Codeigniter and Grocery Crud for a project. The crud seems to be working fine but the problem is that when I try to add values, I don't get the success message. Instead I get a textbox like below I tried reinstalling the crud from scratch…
LiveEn
  • 3,193
  • 12
  • 59
  • 104
3
votes
1 answer

Grocery CRUD for multilanguage articles

I follow the guide in Grocery CRUD web documentation, but I can't find if this library suport operations for a multilanguage application. let's say I have a table articles, where I have a column "lang", id   lang      title 1     EN    …
3
votes
2 answers

Set dropdown input default value based on third parameter in Grocery CRUD

Code sample below, function product($parameter){ $crud = new grocery_CRUD(); ... $crud->callback_add_field('dropdown_field_name',array($this,'_add_field_callback')); ... $output = $crud->render(); } Can I do something like this ?…
Bravo Net
  • 805
  • 5
  • 17
  • 30
3
votes
1 answer

Adding javascript function to a grocerycrud add or edit form

Is it possible to add a javascript function to the add/edit forms of grocery_CRUD? E.g. As a user is typing in a particular field when adding or editing a record I want to execute a javascript on the keydown event. If so, how?
Kenilik
  • 366
  • 7
  • 16
3
votes
2 answers

Custom is_unique_logical_key - validation or callback?

Can I please have a design suggestion for the following problem: I am using Codeigniter/Grocery_CRUD. My system is multi tenanted - different autonomous sites - within the same client. I have quite a few instances of tables that have unique logical…
Kenilik
  • 366
  • 7
  • 16
2
votes
1 answer

change grocery crud texteditor options to simple from advanced

As the title reads, I have been trying to figure out how to be able to use tinymce's "simple" theme instead of the default "advanced". The advanced theme is way more options/buttons then I need. I have tried: editting : jquery.tine_mce.config.js…
CI_Guy
  • 1,039
  • 2
  • 22
  • 39
2
votes
4 answers

Codeigniter Grocery Crud extend set_relation() function?

Is there anyone knows how to extend the set_relation() ? Here is the idea, base on the example of Grocery Crud employee and offices table $crud->set_relation('officeCode','offices','city'); the code output will show all city in dropdown, but I want…
noviceRick
  • 121
  • 1
  • 5
  • 14
2
votes
3 answers

How to call a custom sibling method of custom helper in codeigniter and use database

EDIT load->database(); $crud = new grocery_Crud(); $crud->set_table($table_name); …
Adarsh Sahu
  • 445
  • 5
  • 13
1
2
3
23 24