title: To setup bootstrap on yii
body: <p>I installed the Yii-Bootstrap and keep it in the  protected/extensions folder. After that i extract the zip file and named it bootstrap. As the documentation of <a href="http://www.cniska.net/yii-bootstrap/setup.html" rel="nofollow">http://www.cniska.net/yii-bootstrap/setup.html</a>.</p>
  
  <p>I change the file config/main.php like this.But i cant get the result. If i did the wrong thing, Please suggest me here how can i use the bootstrap on yii.</p>
  
  <pre><code>&lt;?php
  
  // uncomment the following to define a path alias
  // Yii::setPathOfAlias('local','path/to/local-folder');
  
  // This is the main Web application configuration. Any writable
  // CWebApplication properties can be configured here.
  Yii::setPathOfAlias('bootstrap', dirname(__FILE__).'/extensions/bootstrap');
  return array(
    'basePath'=&gt;dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
    'name'=&gt;'Tantra Songs',
      'theme'=&gt;'bootstrap', // requires you to copy the theme under your themes directory
  
    // preloading 'log' component
    'preload'=&gt;array('log','application.ext.bootstrap.*'),
  
    // autoloading model and component classes
  'import'=&gt;array(
          'application.models.*',
          'application.components.*',
          'application.ext.bootstrap.*',
          'application.modules.user.models.*',
          'application.modules.user.components.*',
      ),
  
    'modules'=&gt;array(
      // uncomment the following to enable the Gii tool
      'gii'=&gt;array(
        '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,
      ),
      '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=nt_songs',
        'emulatePrepare' =&gt; true,
        'username' =&gt; 'root',
        'password' =&gt; 'root',
        'charset' =&gt; 'utf8',
        'tablePrefix' =&gt; 'nt_',
      ),
      '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',
          ),
          */
        ),
      ),
    ),
  
  );
  </code></pre>