Yii Framework Forum: Cactiveform In Next 2.0 - Yii Framework Forum

Jump to content

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

Cactiveform In Next 2.0

#1 User is offline   dandi 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 25
  • Joined: 04-June 13

Posted 19 November 2013 - 06:43 PM

Can you confirm me that in 2.0 we'll still have CActiveForm for manage forms?

Thanks
0

#2 User is offline   ORey 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,701
  • Joined: 20-April 09
  • Location:Moscow, Russia

Posted 19 November 2013 - 06:47 PM

I confirm that.

Now it looks this way:

<?php $form = ActiveForm::begin(['options' => ['id' => 'fmain']]); ?>
    <?= $form->field($record, 'name')->textInput(); ?>
    <?= $form->field($record, 'description')->textarea(['rows' => 10]); ?>
    <?= $form->field($record, 'is_disabled')->checkBox(); ?>
<?php ActiveForm::end(); ?>

God is real unless declared as integer
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