Hello,
First of all thanks to the developers working on Grocery Crud, it's amazing.
Well, on with the question. I followed all the tutorials on the page and created my own table with 4 columns, one with ID primary auto incremented, 2 for names and last names, and one for date of birth. I uploaded 3 images so you can see the process. I can add and update the 2 columns containing the names and last names, but for no apparent reason the "DATE" value is not being loaded. Even though it says it was a successful operation.
Explanation of the images:
1 - Structure of my table "patients"
2- Inserting the data
3- Successful operation, even though the field of the date is empty
The resulting row in the database contains the same values I provided, except the date is 0000-00-00
Any other information I will be more than happy to provide
EDIT:
This is the code of my controller:
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); class GetPatients extends CI_Controller { function __construct() { parent::__construct(); $this->load->database(); $this->load->helper('url'); $this->load->library('grocery_CRUD'); } public function index() { echo "<h1>Welcome to the world of Codeigniter</h1>"; //Just an example to ensure that we get into the function die(); } public function dbpatients() { $this->grocery_crud->set_table('patients'); $output = $this->grocery_crud->render(); $this->_example_output($output); } function _example_output($output = null) { $this->load->view('patients_view',$output); } }