i have an apps with codeigniter as framework and ignited datatables as table libraries and also serverside. i would like to generate the table, and i put the code in the codeigniter controller, example :
$this->datatables->select('name,address,gender')
->from('person');
echo $this->datatables->generate();
in the database table, the value of gender column just integer, with 1 and 2 as value, i mean 1 as male, and 2 as female. how to setting if the value detect 1 the view is male and if 2 the view is female in the table ?