enable search option
- Single Page
Posted 09 January 2013 - 08:06 AM
Posted 09 January 2013 - 08:14 AM
Posted 09 January 2013 - 08:15 AM
Posted 10 January 2013 - 05:54 AM
what version GC do you use?
[/quote]
version 1.3.3 latest version
Posted 10 January 2013 - 06:52 AM
Posted 10 January 2013 - 07:17 AM
those options show by default. show your code.
[/quote]
function __construct()
{
parent::__construct();
$this->load->database();
$this->load->library('grocery_CRUD');
}
function index()
{
$this->load->view('header');
$this->load->view('nav');
$this->load->view('sidebar');
$this->load->view('dashboard');
$this->load->view('footer');
}
function get_category()
{
$this->category_output((object)array('output' => '' , 'js_files' => array() , 'css_files' => array()));
$crud = new grocery_CRUD();
$crud->set_theme('datatables');
$crud->set_table('t_category');
$crud->set_subject('Category');
$crud->columns('categoryName', 'friendlyName', 'description', 'status');
$crud->fields('categoryName', 'friendlyName', 'description', 'status');
$crud->display_as('categoryName', 'Name')->display_as('friendlyName', 'Slug Name');
$crud->add_action('Change Status', '', 'c_category/change_status');
$crud->required_fields('categoryName', 'friendlyName', 'status');
$crud->change_field_type('status', 'true_false');
//$crud->set_relation('parentId','t_cat_parent','parentName');
$output = $crud->render();
$this->category_output($output);
}
function category_output($output)
{
$this->load->view('category.php', $output);
}
Posted 10 January 2013 - 07:21 AM
function __construct()
{
parent::__construct();
$this->load->database();
$this->load->library('grocery_CRUD');
}
function index()
{
$this->load->view('header');
$this->load->view('nav');
$this->load->view('sidebar');
$this->load->view('dashboard');
$this->load->view('footer');
}
function get_category()
{
$this->category_output((object)array('output' => '' , 'js_files' => array() , 'css_files' => array()));
$crud = new grocery_CRUD();
$crud->set_theme('datatables');
$crud->set_table('t_category');
$crud->set_subject('Category');
$crud->columns('categoryName', 'friendlyName', 'description', 'status');
$crud->fields('categoryName', 'friendlyName', 'description', 'status');
$crud->display_as('categoryName', 'Name')->display_as('friendlyName', 'Slug Name');
$crud->add_action('Change Status', '', 'c_category/change_status');
$crud->required_fields('categoryName', 'friendlyName', 'status');
$crud->change_field_type('status', 'true_false');
//$crud->set_relation('parentId','t_cat_parent','parentName');
$output = $crud->render();
$this->category_output($output);
}
function category_output($output)
{
$this->load->view('category.php', $output);
}
[/quote]
[img]C:\Users\Elcot\Desktop\c.jpg[/img]
Posted 10 January 2013 - 07:42 AM