Doubts Extensions Yiistrap

Hi,

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:

<?php

// 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(

'basePath'=&gt;dirname(__FILE__).DIRECTORY_SEPARATOR.'..',


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





// preloading 'log' component


'preload'=&gt;array('log'),





// autoloading model and component classes


'import'=&gt;array(


	'application.models.*',


	'application.components.*',


	'bootstrap.helpers.TbHtml',


	'bootstrap.components.*',


	'bootstrap.form.*',


    'bootstrap.helpers.*',


    'bootstrap.widgets.*',


),





// 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'),


),





'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'),


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


	),


	


),





// application components


'components'=&gt;array(





	'user'=&gt;array(


		// enable cookie-based authentication


		'allowAutoLogin'=&gt;true,


	),





	'bootstrap' =&gt; array(


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


    ),





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


	


	'urlManager'=&gt;array(


		'urlFormat'=&gt;'path',


		'rules'=&gt;array(


			'&lt;controller:&#092;w+&gt;/&lt;id:&#092;d+&gt;'=&gt;'&lt;controller&gt;/view',


			'&lt;controller:&#092;w+&gt;/&lt;action:&#092;w+&gt;/&lt;id:&#092;d+&gt;'=&gt;'&lt;controller&gt;/&lt;action&gt;',


			'&lt;controller:&#092;w+&gt;/&lt;action:&#092;w+&gt;'=&gt;'&lt;controller&gt;/&lt;action&gt;',


		),


	),


	





	// database settings are configured in database.php


	'db'=&gt;require(dirname(__FILE__).'/database.php'),





	'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',


),

);

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.