title: yii-user extension gives an invalid alias error
body: <p>i'm new to yii and downloaded this extension</p>
  
  <p><a href="https://github.com/mishamx/yii-user" rel="nofollow">https://github.com/mishamx/yii-user</a></p>
  
  <p>i've uploaded all the necessary files into the <strong>protected/</strong> folder</p>
  
  <p>but i keep getting this error. what am i missing?</p>
  
  <pre><code> Alias "user.UserModule" is invalid. Make sure it points to an existing PHP file and the file is readable.
  
  /Applications/XAMPP/xamppfiles/htdocs/dev2/framework/YiiBase.php(322)
  </code></pre>
  
  <p>i edited my <strong>config/main/php</strong> which now looks like this</p>
  
  <pre><code>&lt;?php
  
  // uncomment the following to define a path alias
  // Yii::setPathOfAlias('local','path/to/local-folder');
  
  // Define a path alias for the Bootstrap extension as it's used internally.
  // In this example we assume that you unzipped the extension under protected/extensions.
  Yii::setPathOfAlias('bootstrap', dirname(__FILE__).'/../extensions/bootstrap');
  
  // This is the main Web application configuration. Any writable
  // CWebApplication properties can be configured here.
  return array(
      'basePath'=&gt;dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
      'name'=&gt;'my site',
      'theme'=&gt;'bootstrap', // requires you to copy the theme under your themes directory
  
      // preloading 'log' component
      'preload'=&gt;array('log'),
  
      // autoloading model and component classes
      'import'=&gt;array(
          'application.models.*',
          'application.components.*',
          'application.modules.user.models.*',
          'application.modules.user.components.*',
      ),
  
      'modules'=&gt;array(
          // uncomment the following to enable the Gii tool
  
          'gii'=&gt;array(
              'class' =&gt; 'system.gii.GiiModule',
              'password' =&gt; 'gii', //Enter Your Password Here
              // If removed, Gii defaults to localhost only. Edit carefully to taste.
              'ipFilters' =&gt; array('127.0.0.1','::1'),
              'generatorPaths' =&gt; array('bootstrap.gii'),
          ),
          'user'=&gt;array(
              # encrypting method (php hash function)
              'hash' =&gt; 'md5',
  
              # send activation email
              'sendActivationMail' =&gt; true,
  
              # allow access for non-activated users
              'loginNotActiv' =&gt; false,
  
              # activate user on registration (only sendActivationMail = false)
              'activeAfterRegister' =&gt; false,
  
              # automatically login from registration
              'autoLogin' =&gt; true,
  
              # registration path
              'registrationUrl' =&gt; array('/user/registration'),
  
              # recovery password path
              'recoveryUrl' =&gt; array('/user/recovery'),
  
              # login form path
              'loginUrl' =&gt; array('/user/login'),
  
              # page after login
              'returnUrl' =&gt; array('/user/profile'),
  
              # page after logout
              'returnLogoutUrl' =&gt; array('/user/login'),
          ),
  
      ),
  
      // application components
      'components'=&gt;array(
          'user'=&gt;array(
              // enable cookie-based authentication
              'allowAutoLogin'=&gt;true,
              'class' =&gt; 'WebUser',
          ),
  
          'bootstrap' =&gt; array(
              'class' =&gt; 'bootstrap.components.Bootstrap',
          ),
          // uncomment the following to enable URLs in path-format
          'urlManager'=&gt;array(
              'urlFormat'=&gt;'path',
              'rules'=&gt;array(
                  '&lt;controller:\w+&gt;/&lt;id:\d+&gt;'=&gt;'&lt;controller&gt;/view',
                  '&lt;controller:\w+&gt;/&lt;action:\w+&gt;/&lt;id:\d+&gt;'=&gt;'&lt;controller&gt;/&lt;action&gt;',
                  '&lt;controller:\w+&gt;/&lt;action:\w+&gt;'=&gt;'&lt;controller&gt;/&lt;action&gt;',
              ),
  
          ),
  
          /*'db'=&gt;array(
              'connectionString' =&gt; 'sqlite:'.dirname(__FILE__).'/../data/testdrive.db',
          ),*/
  
          // uncomment the following to use a MySQL database
  
          'db'=&gt;array(
              'connectionString' =&gt; 'mysql:host=localhost;dbname=DBNAME',
              'emulatePrepare' =&gt; true,
              'username' =&gt; 'root',
              'password' =&gt; '',
              'charset' =&gt; 'utf8',
              'tablePrefix' =&gt; 'tbl_',
          ),
  
          'errorHandler'=&gt;array(
              // use 'site/error' action to display errors
              'errorAction'=&gt;'site/error',
          ),
          'log'=&gt;array(
              'class'=&gt;'CLogRouter',
              'routes'=&gt;array(
                  array(
                      'class'=&gt;'CFileLogRoute',
                      'levels'=&gt;'error, warning',
                  ),
                  // uncomment the following to show log messages on web pages
                  /*
                  array(
                      'class'=&gt;'CWebLogRoute',
                  ),
                  */
              ),
          ),
      ),
  
      // application-level parameters that can be accessed
      // using Yii::app()-&gt;params['paramName']
      'params'=&gt;array(
          // this is used in contact page
          'adminEmail'=&gt;'admin@******.com',
      ),
  );
  </code></pre>
  
  <p>?></p>
  
  <p>and this is my <strong>config/console.php</strong> file</p>
  
  <pre><code>&lt;?php
  
  // This is the configuration for yiic console application.
  // Any writable CConsoleApplication properties can be configured here.
  return array(
      'basePath'=&gt;dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
      'name'=&gt;'My Console Application',
  
      // preloading 'log' component
      'preload'=&gt;array('log'),
  
      // application components
      'components'=&gt;array(
          // uncomment the following to use a MySQL database
          'db'=&gt;array(
          'connectionString' =&gt; 'mysql:host=localhost;dbname=*****',
          'emulatePrepare' =&gt; true,
          'username' =&gt; 'root',
          'password' =&gt; '',
          'charset' =&gt; 'utf8',
          'tablePrefix' =&gt; 'tbl_',
      ),
  
          'log'=&gt;array(
              'class'=&gt;'CLogRouter',
              'routes'=&gt;array(
                  array(
                      'class'=&gt;'CFileLogRoute',
                      'levels'=&gt;'error, warning',
                  ),
              ),
          ),
          ),
          'modules'=&gt;array(
  
              'user'=&gt;array(
                  # encrypting method (php hash function)
                  'hash' =&gt; 'md5',
  
                  # send activation email
                  'sendActivationMail' =&gt; true,
  
                  # allow access for non-activated users
                  'loginNotActiv' =&gt; false,
  
                  # activate user on registration (only sendActivationMail = false)
                  'activeAfterRegister' =&gt; false,
  
                  # automatically login from registration
                  'autoLogin' =&gt; true,
  
                  # registration path
                  'registrationUrl' =&gt; array('/user/registration'),
  
                  # recovery password path
                  'recoveryUrl' =&gt; array('/user/recovery'),
  
                  # login form path
                  'loginUrl' =&gt; array('/user/login'),
  
                  # page after login
                  'returnUrl' =&gt; array('/user/profile'),
  
                  # page after logout
                  'returnLogoutUrl' =&gt; array('/user/login'),
              ),
      )
  );
  </code></pre>