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(








)); ?>


<?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 "" is not defined." error. Am I missing something?


by adding:

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

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