Hi, i have a question...
this is the code and...
try{ $crud = new grocery_CRUD(); $crud->set_theme('flexigrid'); $crud->set_table('news'); $crud->set_subject('News'); $crud->set_relation('category', 'news_categories', 'name'); $crud->set_field_upload('image_s','upload_area/'); $crud->set_field_upload('image_l','upload_area/'); $crud->display_as('category','Categoria'); $crud->set_relation('id', 'news_i18n', 'title'); $crud->display_as('id','Titolo'); $crud->display_as('date','Data'); $crud->display_as('published','Pubblicato'); $crud->display_as('hp','In homepage'); $crud->fields('id', 'category', 'date', 'published', 'hp'); $crud->columns('id', 'lang', 'category', 'date', 'published', 'hp'); $output = $crud->render(); $this->_list_output($output); }catch(Exception $e){ show_error($e->getMessage().' --- '.$e->getTraceAsString()); } }
...if the column "lang" is in 'news_i18n' table, how do I display it?
Thanks