Yii Framework Forum: Setting up Yii2 Builder - Yii Framework Forum

Jump to content

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

Setting up Yii2 Builder Rate Topic: -----

#1 User is offline   wallyb 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 24-November 14

Posted 24 November 2014 - 11:27 AM

Hello,

I am new to Yii and currently working on a project using Yii2.

I have installed Kartik's Yii2 Builder using composer, but I am getting the error: Class 'kartik\widgets\ActiveForm' not found.

Below is the code in _form.php:
    use kartik\widgets\ActiveForm;
    use kartik\builder\Form;
    $form = ActiveForm::begin(['type'=>ActiveForm::TYPE_INLINE]);
    echo Form::widget([
    'model'=>$model,
    'form'=>$form,
    'attributes'=>$model->formAttribs
    ]);
    // Add other fields if needed or render your submit button
    echo '  ' . Html::submitButton('Submit', ['class'=>'btn btn-primary']);
    ActiveForm::end();


What am I missing ?

I appreciate any help from the forum members.
1

#2 User is offline   iosu 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 16-October 13

Posted 27 December 2014 - 05:30 PM

I have same problem!!
0

#3 User is offline   iosu 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 16-October 13

Posted 04 January 2015 - 04:22 PM

i fix this error installed the dependends of extension.....

NOTE: This extension depends on the kartik-v/yii2-widgets extension, which in turn depends on the yiisoft/yii2-bootstrap extension. Check the
composer.json for this extension's requirements and dependencies.
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