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 set_relation: how i do this?

from official grocery CRUD web, they teach me set_relation like that: set_relation tutorial The tutorial show how to display database which the main table (set_table) is "employees". But how do i display when my set_table is offices, so then one of…
smftr
  • 923
  • 3
  • 17
  • 31
0
votes
1 answer

code always work in grocery crud although the if condition

I got stuck in a situation quite strange in my code. It seems as the if condition does not work. Here is my code: if ($mode == "edit") { echo "edit mode!"; } else { $crud->set_rules('u_email','Email','is_unique[users.u_email]'); echo…
roev
  • 1,267
  • 2
  • 16
  • 28
0
votes
1 answer

GROCERY CRUD date picker widget?

It is given that if your column type is date the form will show a date picker using the grocery crud. My problem is that, is it possible to use the date picker widget of the GROCERY CRUD (like displaying the date picker in the view and return the…
doylefelix
  • 117
  • 3
  • 12
0
votes
1 answer

codeigniter - save current date

I need to save current date and I supposed I must modify this code into application\libraries\grocery_crud.php line # 253 case 'date': /*if(!empty($value) && $value != '0000-00-00' && $value != '1970-01-01') { list($year,$month,$day) =…
Maru
  • 55
  • 3
  • 14
0
votes
1 answer

grocery crud getState for uploads while inserting and updating

I am stuck with codeigniter, Grocery CRUD code, here is portion of the code that keeps troubling me: if($state == 'add'){//add state $upload_path = '/files/dir1/'; } else if($state == 'edit'){//edit state $upload_path =…
Ganesh Rathinavel
  • 1,243
  • 4
  • 17
  • 38
0
votes
1 answer

add a field value from code

I'm using Grocery CRUD with CodeIgniter, and I have this table : annonce (id, name, id_user). the id_user is a foreign key which references to another table user(id,....). I don't want to add the user_id in an input when I add an entry in the…
Renaud is Not Bill Gates
  • 1,684
  • 34
  • 105
  • 191
0
votes
1 answer

Codeigniter Maintenance Mode Controller

I use codeigniter latest version. I am building an admin area where can choose to have site on maintenance mode. The button will be radial. the will click save and will update settings. What is the best way to create the controller for it. I still…
0
votes
0 answers

Edit html content of the operation pages in GC

This may sound newbie-sh but I would like to edit the actual html that is rendered by Grocery-Crud in the add, edit and delete pages, in order to add some other elements (UI elements, just to make the page similar to the rest of the web app in which…
0
votes
1 answer

Date value not storing in database

I'm using Codeigniter with Grocery Crud, to connect with a database in MySQL and PhpMyAdmin. I installed everything as the tutorial said, but errors can always be there. My problem is: I have a simple table (3 fields, one for name, another one for…
0
votes
2 answers

codeigniter / groceryCRUD send data to view not working

I have a script that works, this one: $output = $crud->render(); $data = array(); $data['title'] = 'Invoice details'; $output->data = $data; $this->output($output); /* crud render and extra fields */ the thing is that this…
Ralph Schipper
  • 701
  • 2
  • 12
  • 24
0
votes
1 answer

grocery crud with phil surgeons template

hii ihave a question how to use grocery crud with phils template library here is my code controller public function user_management() { $crud = new grocery_CRUD(); $crud->set_subject('User'); $output = $crud->render(); …
rajesh
  • 323
  • 1
  • 2
  • 12
0
votes
1 answer

Get permission data from Database

I'm having problems to do a simple permission system on my Webapp. My DB has a table called "usuario" that has informations about the users of the system. One of these columns is called "privilegio" that has value '0' for administrators and 1 for…
Leonardo
  • 5
  • 1
0
votes
1 answer

Check grocery crud state

I want to check the from the controller if I am rendering an add form or just a view. I want to do something like this.. public function clients() { try{ if ($_SERVER["REQUEST_URI"] == "/data/clients") { …
0
votes
2 answers

sending email issue in codeigniter

I have config email in codeigniter 'protocol' => 'smtp', 'smtp_host' => 'ssl://smtp.gmail.com', 'smtp_port' => '465', 'smtp_user' => '-----', 'smtp_pass' =>…
0
votes
2 answers

With GroceryCrud, how can I put uploads above application root?

I'm using GroceryCRUD to act as a front end for a database containing news releases. Secretaries can go in and add/edit/delete news releases in the database easily now. Only qualified users are able to access the application root via an .htaccess…
Joe Fitzsimmons
  • 201
  • 1
  • 4