Hi All,
I have already spent two days to resolve the yiibooster config issuse…but didnt get the solution till now…need help.
Problem:Getting error “Alias ‘path.alias.to.booster.components.Bootstrap’ is invalid. Make sure it points to an existing directory or file”
I did the configuration but did not able to resolve it…
My main.php
================
Yii::setPathOfAlias(‘bootstrap’, dirname(FILE).’/../extensions/bootstrap’);
Yii::setPathOfAlias(‘yiibooster’, dirname(FILE).’/../extensions/yiibooster’);
// This is the main Web application configuration. Any writable
// CWebApplication properties can be configured here.
return array(
'theme'=>'bootstrap', // requires you to copy the theme under your themes directory
'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
'name'=>'yii project',
// preloading 'log' component
'preload'=>array(
'log',
'bootstrap'),
// autoloading model and component classes
'import'=>array(
'application.models.*',
'application.components.*',
'ext.YiiMailer.YiiMailer',
'bootstrap.*',
'yiibooster.*',
),
'modules'=>array(
// uncomment the following to enable the Gii tool
'gii'=>array(
'class'=>'system.gii.GiiModule',
'password'=>'testunity',
// If removed, Gii defaults to localhost only. Edit carefully to taste.
'ipFilters'=>array('127.0.0.1','::1'),
'generatorPaths'=>array(
'bootstrap.gii',
),
),
'admin',
),
// application components
'components'=>array(
'user'=>array(
// enable cookie-based authentication
'allowAutoLogin'=>true,
),
'bootstrap' => array(
'class' => 'bootstrap.components.Bootstrap'
),
'bootstrap' => array(
'class' => 'path.alias.to.booster.components.Bootstrap'),
=======================================================================================
and extracted the yiibooster into extension folder.
Please guide me to resolve this issue.
Thanks
Ranjan