title: How to change access controller redirect/login URL in Yii2?
body: <p>I have two login systems in my Yii2 application. First is default login system using <code>User</code> table, and second uses <code>sms_account</code> table. In custom controller I've created action for login, <code>actionLogin()</code>. I've added access control for my custom controller, but I'm having problem that when a person is not logged in, it redirects to <code>site/login</code>. I want to change redirect to <code>custom-controller/login</code> URL in Yii2 access control. My code is:</p>
  
  <pre><code>public function behaviors()
  {
      return [
          'verbs' =&gt; [
              'class' =&gt; VerbFilter::className(),
              'actions' =&gt; [
                  'delete' =&gt; ['post'],
              ],
          ],
          'access' =&gt; [
              'class'  =&gt; AccessControl::className(),
              'rules' =&gt;  [
                  [
                      'actions' =&gt; ['login'],
                      'allow' =&gt; false,
                      'roles' =&gt; ['@']
                  ],
                  [
                      'actions' =&gt; ['home'],
                      'allow' =&gt; true,
                      'roles' =&gt; ['@']
                  ]
              ]
          ]
      ];
  }
  </code></pre>
  
  <p>Can anyone tell me how to change access control URL?</p>