Hey Johnny!
i did waste about 2 days with crud
but now i’m still stuck with it
i did used this line code
$crud->change_field_type(‘inserted_date’, ‘date’);
look to my code in code in controller
<?php
if (!defined('BASEPATH'))
exit('No direct script access allowed');
class Examples extends CI_Controller {
function __construct() {
parent::__construct();
$this->load->database();
$this->load->helper('url');
$this->load->library('grocery_CRUD');
}
function _example_output($output = null) {
$this->load->view('example.php', $output);
}
function index() {
$this->_example_output((object) array('output' => '', 'js_files' => array(), 'css_files' => array()));
}
function payments() {
/* This is only for the autocompletion */
$crud = new grocery_CRUD();
$crud->set_table('payments');
$crud->set_subject('مجموعات الرجيم :: :: ');
$crud->required_fields(' title');
$crud->columns(' title', 'desc', 'group_slug');
$crud->change_field_type('birthdate', 'date');
$output = $crud->render();
$this->_example_output($output);
}
}
so i dont know why calander is not loading
Also when i update i get this message:
{"success":true,"insert_primary_key":true,"success_message":"Your data has been successfully updated. <a href='http:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\/\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\/www.domain.com\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\/examples\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\/diet'>Go back to list<\/a><\/p>","success_list_url":"http:\/\/www.domain.com\/examples\/diet\/success\/1"}
this message only appears when i use date field in mysql table
if i removed this date field it does not appears and everything go fine.
thank you in advance