title: Override Yii Login Url for Module
body: <p>How to override Yii Login URL Modul for module?</p>
  
  <p>here is the main configuration for base application:</p>
  
  <pre><code>return array(
              .........
  
      // application components
      'components'=&gt;array(
          'user'=&gt;array(              
              // enable cookie-based authentication
              'allowAutoLogin'=&gt;true,
              'loginUrl' =&gt; '/site/login',
          ),
             ..........
        );
  </code></pre>
  
  <p>And then i have agent module, i want in this this module the login URL is different and login method is also different.</p>
  
  <pre><code>class AgentModule 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(
              'agent.models.*',
              'agent.components.*',
          ));
  
          $this-&gt;defaultController = 'default';
          $this-&gt;layoutPath = Yii::getPathOfAlias('agent.views.layout');
          $this-&gt;components = array(
              'user' =&gt; array(
                  'class' =&gt; 'AgentUserIdentity',
                  'loginUrl' =&gt; '/agent/default/login',
              )
          );
      }
              .......
  </code></pre>
  
  <p>But i don't know why this not work.
  Please help... (T.T)</p>