title: Yii is unable to find action login in Admin module
body: <p>See the following code of the </p>
  
  <pre><code>&lt;?php
  
  class DefaultController extends Controller
  {
  
      public function actionIndex()
      {
          $this-&gt;render('index');
      }
  
      /**
       * Displays the login page
       */
      public function actionLogin()
      {
          $model = new LoginForm;
  
          // collect user input data
          if (isset($_POST['LoginForm']))
          {
              $model-&gt;attributes = $_POST['LoginForm'];
              // validate user input and redirect to the previous page if valid
              if ($model-&gt;validate() &amp;&amp; $model-&gt;login())
                  $this-&gt;redirect(Yii::app()-&gt;user-&gt;returnUrl);
          }
          // display the login form
          $this-&gt;render('login', array('model' =&gt; $model));
      }
  
      public function filters()
      {
          return array(
              'accessControl',
          );
      }
  
      public function accessRules()
      {
          return array(
              array('allow', // allow all users to perform the 'login' action
                  'actions' =&gt; array('login'),
                  'users' =&gt; array('*'),
              ),
              array('allow', // allow the admin user to perform everything
                  'actions' =&gt; array('*'),
                  'users' =&gt; array('@'),
              ),
              array('deny', // deny all users
                  'users' =&gt; array('*'),
              ),
          );
      }
  
  }
  </code></pre>
  
  <p>The problem is, when I go to my module: <code>/?r=admin</code> I am redirected to <code>/?r=site/index</code> my default site controller.</p>
  
  <p>How can this happen?</p>
  
  <p>Edit: (added AdminModule)</p>
  
  <pre><code>&lt;?php
  
  class AdminModule extends CWebModule
  {
  
      public function init()
      {
          // this method is called when the module is being created
          // you may place code here to customize the module or the application
          // import the module-level models and components
          $this-&gt;setImport(array(
              'admin.models.*',
              'admin.components.*',
          ));
  
          $this-&gt;setComponents(array(
              'user' =&gt; array(
                  'loginUrl' =&gt; Yii::app()-&gt;createUrl('admin/default/login'),
              )
          ));
      }
  
      public function beforeControllerAction($controller, $action)
      {
          if (parent::beforeControllerAction($controller, $action))
          {
              // this method is called before any module controller action is performed
              // you may place customized code here
  
              return true;
          }
          else
              return false;
      }
  
  }
  </code></pre>
  
  <p>As you see I added loginUrl via setComponents, but that does also not work.</p>