Yii Framework Forum: Alias "gii.GiiModule" is invalid. Make sure it points to an existing PHP file. - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Alias "gii.GiiModule" is invalid. Make sure it points to an existing PHP file. Rate Topic: -----

#1 User is offline   xdrone 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 26-July 12

Posted 27 July 2012 - 07:55 AM

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?
0

#2 User is offline   michelle 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 29-December 12

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.
4

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users