⚠ In case you've missed it we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This forum is read-only and soon will be archived. ⚠


Juliano Martins

Member Since 28 Oct 2013
Offline Last Active Nov 17 2013 02:35 PM
-----

Topics I've Started

field_type true_false on read state

28 October 2013 - 06:25 PM

I'm trying to show a boolean field in the read state, but so far without success.
 
See what I'm trying:
 
 
$crud->field_type('ativo', 'true_false', array('1' => 'Sim', '0' => 'Não'));

This field in my table is:

`ativo` TINYINT(1) NOT NULL DEFAULT '1',

I use: GC stable version 1.4.1 and CI 2.1.3

 

Any suggestions?