Passing data-ajax property to a CActiveForm form

Hello gentlemen!

I need to pass data-ajax = "false" property to the form. This property is needed for jQuery Mobile to make it stop loading pages with Ajax.

Here is my code:




<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(

	'id'=>'login-form',

	'enableClientValidation'=>true,

	'clientOptions'=>array(

		'validateOnSubmit'=>true,

	),	

	'focus'=>array($model,'username'),

	'data-ajax'=>false,

)); ?>


......


<?php $this->endWidget(); ?>

</div><!-- form -->




so my html output would look like this:


<form id="login-form" method="post" action="/*********" data-ajax ="false">

Unfortunately im getting a CException "Property "CActiveForm.data-ajax" is not defined." error. Am I missing something?


SOLVED

by adding:

‘htmlOptions’ => array(“data-ajax”=>“false”),

I forgot that^^^^ aaaaaa!!!!