title: Yii2 $model->load(Yii::$app->request->post()) does not load data from form
body: <p>When I take out condition to load data it saves it to db, the $_POST gets values but doesnt send them to controller , this way works in my other projects but not here. If I use <code>if(isset($_POST['money']) &amp;&amp; isset($_POST['username'])){</code> to save data it works but not the <code>load()</code> function.</p>
  
  <p>Controller</p>
  
  <pre><code>public function actionSend() {
      $model = new User();
      $model-&gt;getErrors();
      if ($model-&gt;load(Yii::$app-&gt;request-&gt;post())) {
          $model-&gt;money = 'something';
          $model-&gt;username = 'something';
          $model-&gt;save();
      }
      return $this-&gt;render('send', [
          'model' =&gt; $model
      ]);
  }
  </code></pre>
  
  <p>Model</p>
  
  <pre><code>&lt;?php
  
  namespace app\models;
  use yii\db\ActiveRecord;
  
  use Yii;
  
  class User extends \yii\db\ActiveRecord {
      public static function tableName() {
          return 'user';
      }
  
      public function rules() {
          return [
              [['username', 'money'], 'safe'],
              [['username', 'password'], 'string', 'max' =&gt; 15],
              [['auth_key', 'access_token'], 'string', 'max' =&gt; 32],
              [['money'], 'string', 'max' =&gt; 8],
          ];
      }
  
      public function attributeLabels() {
          return [
              'id' =&gt; 'ID',
              'username' =&gt; 'Username',
              'password' =&gt; 'Password',
              'auth_key' =&gt; 'Auth Key',
              'access_token' =&gt; 'Access Token',
              'money' =&gt; 'Money',
          ];
      }
  }
  </code></pre>
  
  <p>view</p>
  
  <pre><code>&lt;?php
  use yii\helpers\Html;
  use yii\bootstrap\ActiveForm;
  ?&gt;
  
  &lt;h2&gt;Send&lt;/h2&gt;
  
  &lt;?php $form = ActiveForm::begin([
      'layout' =&gt; 'horizontal',
      'fieldConfig' =&gt; [
          'template' =&gt; "{label}\n&lt;div class=\"col-lg-3\"&gt;{input}&lt;/div&gt;\n&lt;div class=\"col-lg-8\"&gt;{error}&lt;/div&gt;",
          'labelOptions' =&gt; ['class' =&gt; 'col-lg-1 control-label'],
      ],
  ]); ?&gt;
      &lt;?= $form-&gt;field($model, 'username')-&gt;textInput(['name' =&gt; 'username']) ?&gt;
  
      &lt;?= $form-&gt;field($model, 'money')-&gt;textInput(['name' =&gt; 'money'])?&gt;
  
      &lt;div class="form-group"&gt;
          &lt;div class="col-lg-offset-1 col-lg-11"&gt;
              &lt;?= Html::submitButton('Send', ['class' =&gt; 'btn btn-success']) ?&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  
  &lt;?php ActiveForm::end(); ?&gt;
  </code></pre>