title: Yii2. ActiveFrom. Add GET-param to URL without model array
body: <p>I want simply to add GET-param to URL from user.
  I use third party module action, so I don't want to change the signature that is</p>
  
  <pre><code>public function actionReset($id, $code)
  </code></pre>
  
  <p>I have such model in controller</p>
  
  <pre><code>$model = new DynamicModel([
      'code'
  ]);
  $model-&gt;addRule(['code'], 'required');
  $model-&gt;addRule(['code'], 'string');
  </code></pre>
  
  <p>And such <code>ActiveForm</code></p>
  
  <pre><code>&lt;?php $form = ActiveForm::begin([
      'method' =&gt; 'get',
      'action' =&gt; [
          \yii\helpers\Url::current()
      ]
  ]) ?&gt;
  
  &lt;?php echo $form-&gt;field($model, 'code')-&gt;textInput()-&gt;label(false); ?&gt;
  
  &lt;?php echo Html::submitButton(Yii::t('user', 'Continue')); ?&gt;
  
  &lt;?php ActiveForm::end(); ?&gt;
  </code></pre>
  
  <p>And with such implementation it passes with an array wrapper:</p>
  
  <p><a href="https://i.stack.imgur.com/BOjgZ.png" rel="nofollow"><img src="https://i.stack.imgur.com/BOjgZ.png" alt="enter image description here"></a></p>
  
  <p>Is it possible to avoid such wrapper without custom js?</p>