Hello. I’m new to yii.
Can anyone tell me how to use ‘type’ in model rules?
Thank you.
Hello. I’m new to yii.
Can anyone tell me how to use ‘type’ in model rules?
Thank you.
public function rules()
{
return array(
array('is_new','type','type'=>'boolean'),
);
}
Thank you jerry2801