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;

<?php

// uncomment the following to define a path alias

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

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

// 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 Web Application',





/*'aliases'=&gt;array(


'bootstrap'=&gt;realPath(_DIR_.'/.extensios/yiibooster'),


),*/








// preloading 'log' component


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


'theme'=&gt;'heart',





// autoloading model and component classes


'import'=&gt;array(


	'application.models.*',


	'application.components.*',


),





'modules'=&gt;array(


	// uncomment the following to enable the Gii tool


	


	'gii'=&gt;array(


		'class'=&gt;'system.gii.GiiModule',


		'password'=&gt;'password',


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


		'ipFilters'=&gt;array('127.0.0.1','::1'),


		'generatorPaths'=&gt;array('ext.heart.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:&#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;',


		),


	),


	*/


	/*'db'=&gt;array(


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


	),*/


	// uncomment the following to use a MySQL database


	


	'db'=&gt;array(


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


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


	'fontAwesomeCss'=&gt;true,


	'minify'=&gt;true,


	),

‘themeManager’=>array(

‘basePath’=>‘protected/extensions’,

),

),





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


),

);

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'=>array(

'class'=>'bootstrap.components.bootstrap',

To:




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

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

[indent]),[/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.