I am new to Yii and working with yii bootstrap. I extracted the files to my protected/extension directory and included the code in the protected/config/main.php as described here cniska.net/yii-bootstrap/setup.html
I am receiving this error : "Alias "gii.GiiModule" is invalid. Make sure it points to an existing PHP file."
'modules'=>array(
'gii'=>array(
'generatorPaths'=>array(
'bootstrap.gii', // since 0.9.1
),
),
),
How to resolve this error?
Page 1 of 1
Alias "gii.GiiModule" is invalid. Make sure it points to an existing PHP file.
#2
Posted 29 December 2012 - 02:41 PM
Not sure if you've already resolved your issue, but in case you didn't, you add the "generatorPaths" to the already existing "gii" module array, not overwriting it, like so:
'gii'=>array(
'class'=>'system.gii.GiiModule',
'password'=>'somePassword',
// If removed, Gii defaults to localhost only. Edit carefully to taste.
'ipFilters'=>array('127.0.0.1','::1'),
'generatorPaths'=>array(
'bootstrap.gii',
),
),
Hope that helps.
'gii'=>array(
'class'=>'system.gii.GiiModule',
'password'=>'somePassword',
// If removed, Gii defaults to localhost only. Edit carefully to taste.
'ipFilters'=>array('127.0.0.1','::1'),
'generatorPaths'=>array(
'bootstrap.gii',
),
),
Hope that helps.
Share this topic:
Page 1 of 1

Help












