yiibooster problem

Alias "bootstrap.components.bootstrap" is invalid. Make sure it points to an existing PHP file and the file is readable.

this error is showing when i am running the project

for this i extracted all the files in protected/extensions and also extracted yiiheart and extracted in extensions . and i have done changes in my config/ main .php only.

the file is as follows;


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


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




// preloading 'log' component



// autoloading model and component classes






	// uncomment the following to enable the Gii tool





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






// application components



		// enable cookie-based authentication



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












		'connectionString' =&gt; 'sqlite:'.dirname(__FILE__).'/&#46;&#46;/data/testdrive.db',


	// uncomment the following to use a MySQL database



		'connectionString' =&gt; 'mysql:host=localhost;dbname=hospital',

		'emulatePrepare' =&gt; true,

		'username' =&gt; 'root',

		'password' =&gt; '',

		'charset' =&gt; 'utf8',




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




if this is for a new project, try Yii 2

I don’t know about you, but I was following Larry Ullman’s YiiBook on this and the instructions said to download booster and rename the folder bootstrap, then do what you did in the code above.

The problem I got was the same, but when I looked in the bootstrap components folder, there was no bootstrap.php file. There WAS, however, a booster.php file.

So I changed the way it is registered in main.php (config) from:




'bootstrap' => 'ext.bootstrap.components.Booster',

[indent]'responsiveCss' => true,[/indent]


This assumes you put the bootstrap folder in the protected/extensions folder. ‘ext’ is the alias for that folder.

I hope this helps you. I don’t know much but got mine working by checking out what’s in the folders.