Doubts Extensions Yiistrap


This is my first post and my first steps in Yii. I have installed the first version of Yii, 1.1. The installation was good but I have some troubles to install Yiistrap extensions. The widgets are fine but their format are wrong.

Browser console said:

Failed to load resource: the server responded with a status of 404 (Not Found) -> //localhost/yiiFirst/assets/66939b9c/js/bootstrap.js

Failed to load resource: the server responded with a status of 404 (Not Found) -> //localhost/yiiFirst/assets/66939b9c/css/bootstrap.css

The file main.php in folder config, the configuration is:


// uncomment the following to define a path alias

// Yii::setPathOfAlias(‘local’,‘path/to/local-folder’);

Yii::setPathOfAlias(‘bootstrap’, dirname(FILE) . ‘/../extensions/bootstrap’);

// This is the main Web application configuration. Any writable

// CWebApplication properties can be configured here.

return array(


'name'=&gt;'My First Application',

// preloading 'log' component


// autoloading model and component classes










// path aliases

'aliases' =&gt; array(

    'bootstrap' =&gt; realpath(__DIR__ . '/&#46;&#46;/extensions/bootstrap'), // change this if necessary

    'vendor.twbs.bootstrap.dist' =&gt; realpath(__DIR__ . '/&#46;&#46;/extensions/bootstrap'),



	// uncomment the following to enable the Gii tool




		'password'=&gt;'Enter Your Password Here',

		// If removed, Gii defaults to localhost only. Edit carefully to taste.


		'generatorPaths' =&gt; array('bootstrap.gii'),




// application components



		// enable cookie-based authentication



	'bootstrap' =&gt; array(

        'class' =&gt; 'bootstrap.components.TbApi',   


	// uncomment the following to enable URLs in path-format











	// database settings are configured in database.php



		// use 'site/error' action to display errors








				'levels'=&gt;'error, warning',


			// uncomment the following to show log messages on web pages









// application-level parameters that can be accessed

// using Yii::app()-&gt;params['paramName']


	// this is used in contact page




And then in the file main.php of views/layouts I have inserted the line:

<?php Yii::app()->bootstrap->register(); ?>

I have followed all step from the Yiistrap webpage but I don’t find to fix it

Also, I have downloaded the bootstrap files and put in the folder assets but nothing happens.

Could you help me to fix this error?

Thank you in advance.