title: Yii - syntax error, unexpected ';', expecting ')' in
body: <p>I was following this answer on how to install Bootstrap on Yii Framework... <a href="https://stackoverflow.com/a/16565170">https://stackoverflow.com/a/16565170</a></p>
  
  <p>But I get an error on my site when trying to access it saying this:</p>
  
  <pre><code>Parse error: syntax error, unexpected ';', expecting ')' in C:\wamp\www\yii\yii\protected\config\main.php on line 101
  </code></pre>
  
  <p>here is my code for where the error is supposed to be</p>
  
  <pre><code>    // application-level parameters that can be accessed
      // using Yii::app()-&gt;params['paramName']
      'params'=&gt;array(
          // this is used in contact page
          'adminEmail'=&gt;'webmaster@example.com',
      ),
  
      'bootstrap' =&gt; array(
              'class' =&gt; 'bootstrap.components.TbApi',   
          ),
      )
  );
  </code></pre>
  
  <p>Here is my full config file: </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.
  return array(
      'basePath'=&gt;dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
      'name'=&gt;'DJCDev',
  
      // preloading 'log' component
      'preload'=&gt;array('log'),
  
      // autoloading model and component classes
      'import'=&gt;array(
          'application.models.*',
          'application.components.*',
           'bootstrap.helpers.TbHtml',
      ),
  
      'aliases' =&gt; array(
          'bootstrap' =&gt; realpath(__DIR__ . '/../extensions/bootstrap'), // change this if necessary
  
      'modules'=&gt;array(
          // uncomment the following to enable the Gii tool
          /*
          'gii'=&gt;array(
              'class'=&gt;'system.gii.GiiModule',
              'password'=&gt;'Enter Your Password Here',
              // If removed, Gii defaults to localhost only. Edit carefully to taste.
              'ipFilters'=&gt;array('127.0.0.1','::1'),
          ),
          */
          'gii' =&gt; array(
              'generatorPaths' =&gt; array('bootstrap.gii'),
          ),
  
      // application components
      'components'=&gt;array(
          'user'=&gt;array(
              // enable cookie-based authentication
              'allowAutoLogin'=&gt;true,
          ),
          // 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=testdrive',
              'emulatePrepare' =&gt; true,
              'username' =&gt; 'root',
              'password' =&gt; '',
              'charset' =&gt; 'utf8',
          ),
          */
          '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;'webmaster@example.com',
      ),
  
      'bootstrap' =&gt; array(
              'class' =&gt; 'bootstrap.components.TbApi',   
          ),
      )
      );
  </code></pre>
  
  <p>Ive edited my code and I get a different error now</p>
  
  <pre><code>Parse error: syntax error, unexpected ''aliases'' (T_CONSTANT_ENCAPSED_STRING) in C:\wamp\www\yii\yii\protected\config\main.php on line 12
  </code></pre>
  
  <p>My config file now: </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.
  return array(
      'basePath'=&gt;dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
      'name'=&gt;'DJCDev',
      )
      'aliases' =&gt; array(
          'bootstrap' =&gt; realpath(__DIR__ . '/../extensions/bootstrap'), // change this if necessary
      ),
      // preloading 'log' component
      'preload'=&gt;array('log'),
  
      // autoloading model and component classes
      'import'=&gt;array(
          'application.models.*',
          'application.components.*',
          'bootstrap.helpers.TbHtml',
      ),
  
      'modules'=&gt;array(
          'gii' =&gt; array(
              'generatorPaths' =&gt; array('bootstrap.gii'),
          ),
          // uncomment the following to enable the Gii tool
          /*
          'gii'=&gt;array(
              'class'=&gt;'system.gii.GiiModule',
              'password'=&gt;'Enter Your Password Here',
              // If removed, Gii defaults to localhost only. Edit carefully to taste.
              'ipFilters'=&gt;array('127.0.0.1','::1'),
          ),
          */
      ),
  
      // application components
      'components'=&gt;array(
          'user'=&gt;array(
              // enable cookie-based authentication
              'allowAutoLogin'=&gt;true,
          ),
          // 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=testdrive',
              'emulatePrepare' =&gt; true,
              'username' =&gt; 'root',
              'password' =&gt; '',
              'charset' =&gt; 'utf8',
          ),
          */
          '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',
                  ),
                  */
              ),
          ),
          'bootstrap' =&gt; array(
              'class' =&gt; 'bootstrap.components.TbApi',   
          ),
      ),
  
      // application-level parameters that can be accessed
      // using Yii::app()-&gt;params['paramName']
      'params'=&gt;array(
          // this is used in contact page
          'adminEmail'=&gt;'webmaster@example.com',
      ),
  );
  </code></pre>