Hello,
Not so sure about the implementation of the option ‘enableClientValidation’ with yii bootstrap TbForm :
Conftent of my form : ‘_form.php’ :
return array(
'activeForm' => array(
'enableClientValidation' => true,
),
'elements' => array(
'email' => array('type' => 'text', 'maxlength' => 100),
...
),
'buttons' => array(
'submit' => array('type' => 'submit', 'label' => 'Save')
),
);
Call is done like this :
Yii::import('bootstrap.form.*');
$form = new TbForm('_form', $model);
I get this error message :
CActiveForm and its behaviors do not have a method "inputRow"
Any idea how I can make the client validation to work ?
thanks