i try to change it's name as ->columns('efe_category.category_title as ctitle') or something like this but it didnt fix anything.
Thanks in advance.
function category($cat_type) {
$this->crud->set_table('efe_category')
->set_subject('Kategori')
->columns('category_title')
->fields('category_inherit','category_title','category_type')
->display_as('category_title','Başlık')
//->display_as('category_','Başlık')
->display_as('category_inherit','Ãœst Kategori')
->change_field_type('category_type','hidden',$cat_type)
->where('efe_category.category_type',$cat_type);
$this->crud->set_relation('category_inherit','efe_category','category_title',array('category_type' => $cat_type));
$this->vdata['crud'] = $this->crud->render();
$this->_view('crud_view');
}
Table Structure:
CREATE TABLE `wf_category` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`category_inherit` int(11) NOT NULL DEFAULT '0',
`category_type` varchar(120) COLLATE utf8_unicode_ci NOT NULL,
`category_title` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;