title: Yii2: Signup page shows error "403 forbidden you are not allowed to access the page"
body: <p>I have my signup controller code.</p>
  
  <pre><code>public function actionSignup()
  {
      $model = new SignupForm();
      if ($model-&gt;load(Yii::$app-&gt;request-&gt;post()) &amp;&amp; $model-&gt;validate()) {
          if ($user = $model-&gt;signup()) {
              $this-&gt;layout = 'index';
                  return $this-&gt;goHome();
          }
      }
      $this-&gt;layout = 'index';
      return $this-&gt;render('signup', [
          'model' =&gt; $model,
      ]);
  }
  </code></pre>
  
  <p>When i, through url pass the address as index.php?r=site/login then there appears login form &amp; that works fine. But when i pass as index.php?r=site/signup then it shows me above error. I am not getting this....</p>