tags:

views:

97

answers:

2

I am using gii to generate CRUD operations for a large number of tables, but the generated form uses a text box for the boolean data types instead of the checkbox

In my table model I modified the rules function to use a boolean validator for my fields

public function rules() {
 return array(
  ...
  array('single, random, public', 'boolean'),
  ...
 );
}

but the generated form still uses a text box instead of a checkbox, any idea why ?

+1  A: 

looks like you found as good an answer as you are going to get over in the Yii forums :) : http://www.yiiframework.com/forum/index.php?/topic/10690-gii-crud-generator-field-type-is-always-text-for-boolean/

thaddeusmt
yeah, that's true
Ha11owed
A: 

Dear friend, i think this type of facility is not available in gii u can create menually or best way to use other extractions like gii ..

Bhavik Chauhan,

Bhavik Chauhan