Yii Framework Forum: Extension Bootstrap : Form Builder - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Extension Bootstrap : Form Builder Rate Topic: -----

#1 User is offline   hoplayann 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 9
  • Joined: 31-October 11

Posted 08 April 2013 - 08:56 AM

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
0

#2 User is offline   delfi 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 19-April 13

Posted 24 April 2013 - 05:36 AM

List all elements list.
Do you have element with name or type "inputRow" or "input"?
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users