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

How to integrate Reactjs frontend with php codeigniter application on apache server?

The CodeIgniter application was developed much earlier without plans to integrate ReactJS at that time. A later requirement was added to integrate another ReactJS project with this backend and replace the current frontend (views). The CodeIgniter…
Rohit R
  • 115
  • 1
  • 1
  • 8
8
votes
0 answers

CRUD for Codeigniter, grocerycrud or carbogrid?

I am using CodeIgniter for my website. I am currently trying to implement an admin section where I've to enable CRUD features. I searched online and came across two different extensions for CI. Grocerycrud http://www.grocerycrud.com Carbogrid…
i_nomad
  • 795
  • 2
  • 7
  • 9
5
votes
1 answer

N to N relation in items in same table

I am working with Grocery CRUD (PHP library that creates a full functional CRUD) and I have very basic table of users. id | first_name | last_name Some of this users are relatives. So I want to have separate relation table that looks like id |…
moonvader
  • 19,761
  • 18
  • 67
  • 116
5
votes
2 answers

Dependent Drop down in Grocery CRUD (CodeIgniter)

I stucked in a Problem When Playing with Drop Downs.I tried to use this http://www.grocerycrud.com/forums/topic/1087-updated-24112012-dependent-dropdown-library/ But actually my requirement is quite different. I have a table fwld_products in which…
Engr Saddam Zardari
  • 1,057
  • 1
  • 14
  • 27
5
votes
2 answers

Searching not happening in grocery crud

In grocery crud, searching is not happening for related tables. Searching is only happening for that table fields. function index() { $crud = new grocery_CRUD(); $crud->set_theme('flexigrid'); $crud->set_table('table_name'); …
Delvin Paul
  • 359
  • 3
  • 13
5
votes
2 answers

How to use grocery set_relation function to display content from two different tables in different columns

I have to tables with these schema: users(id, name, email) user_details (id, user_id, physical_address, otherinfo) I would like to display all contents of both tables in one grid using grocery crud when i try to use set relation on the first table…
blackem
  • 81
  • 1
  • 8
4
votes
1 answer

Debugging Grocery_CRUD Callbacks

I have seen many people referring to the usage of call_user_func() to debug the problems in a Grocery_CRUD callback, but unfortunately no one has come off with a complete example to actually how to use it like where to to place a call to the test…
Tanver
  • 41
  • 1
4
votes
2 answers

Codeigniter how to avoid duplicates showing one to many relationship

I have been trying to show rows without duplicates but the query isn't working properly. I think the problem is one to many relationship, because one 'intervaloHorario' has many 'citas'. So, for example, i want to show only: 'From 8:00 to 15:00…
Jose
  • 87
  • 1
  • 8
4
votes
2 answers

How to make specific Grocery CRUD table columns right-align?

Is there a way to make a specific column right-aligned that was rendered by Grocery CRUD? In my case, I want to specifically right-align the column Bonus Value only. Your help will be highly appreciated.
doylefelix
  • 117
  • 3
  • 12
4
votes
1 answer

Read works, add, edit, delete do not in Grocery Crud library Codeigniter

I have done the example and installed everything. The read or display method of table works correctly, but whenever I try to add, delete or edit a registry a windows appears and say: 404 Page Not Found The page you requested was not found. Here is…
Engr Saddam Zardari
  • 1,057
  • 1
  • 14
  • 27
4
votes
1 answer

callback_column not working for connected table in grocery crud

I am trying to change column value using callback_column function. $crud = new grocery_CRUD(); $crud -> set_table('booking'); //$crud->set_relation('room_id','rooms','name'); $crud->callback_column('room_id',array($this,'_visitor_details_popup'));…
Fasil kk
  • 2,147
  • 17
  • 26
3
votes
2 answers

$user->email cannot be accessed from controller , only works on view

I am working on session data where the email is loaded automatically when user enters new record in grocery crud table. On the top of page , the name /email of current user can be displayed by using (in view folder)
sleepyhead
  • 31
  • 5
3
votes
2 answers

GroceryCrud set a n-n relation with where clause

I have three tables (simplified) which are: And I have to display all houses for each user. In my controller I have a function like this: public function create_houses_table($usr_id) { $crud = new grocery_CRUD(); …
Barzo
  • 1,039
  • 1
  • 11
  • 37
3
votes
3 answers

grocery crud insert duplicate data multiple time

Hi I am using Grocery CRUD with HMVC and I am facing some strange problem with that. class Source extends MX_Controller { function __construct() { parent::__construct(); } function index(){ try{ $crud…
Jay
  • 821
  • 2
  • 18
  • 50
3
votes
2 answers

GroceryCRUD : How to set field dropdown

I just code with GroceryCRUD, This is my Database: a_guest_data guest_no register_date name gender birthday address city country phone email ref status date_modified a_table_data id_table tbl_name group_name status seat…
yogieputra
  • 637
  • 2
  • 14
  • 28
1
2 3
23 24