And now why chrome render different from firefox?

Wow!

Even if submit button is before endwidget, on chrome this is rendered after!?!?!?


  </div>


  <div class="row buttons">

    <?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>

  </div>


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


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



In Firefox is all right. What’s happened?

Wow… I’ve tried something:

THIS WORK!!!




  <?php

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

              'id' => 'news-form',

              'enableAjaxValidation' => false,

          ));

  ?>

<div class="form">


  // CODE OF FORM


  <div class="row buttons">

    <?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>

  </div>

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

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




THIS DONT WORK:




<div class="form">

  <?php

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

              'id' => 'news-form',

              'enableAjaxValidation' => false,

          ));

  ?>


  // CODE OF FORM


  <div class="row buttons">

    <?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>

  </div>

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

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




Hi, sensoraio,

Isn’t there an closing </div> without the corresponding opening <div> in your “CODE OF FORM” ?

The developer tool of Chrome shows a "corrected" html code when you give it a html with some error in it.