Reputation: 65
I use the following url to run gii: localhost/path to index.php?r=gii
, but only gii module runs not giix.
please tell me the correct configuration for giix?
my config.php is :
'import'=>array(
'application.models.*',
'application.components.*',
),
'gii' => array(
'class' => 'system.gii.GiiModule',
'password'=>'.......',
'generatorPaths' => array(
'ext.giix.generators', // giix generators
),
),
'components'=>array(
'ext.giix.components.*',
'messages' => array ( // giix messages directory,giix is and extension.
'extensionBasePaths' => array(
'ext.giix.messages', // giix messages directory.
),
),
),
Upvotes: 2
Views: 2103
Reputation: 31
According to the Giix documentation you need to import the 'ext.giix-components.*' and the generatorPaths should be 'ext.giix-core'. So your code should look like:
'import'=>array(
'application.models.*',
'application.components.*',
'ext.giix-components.*', // You need to import the giix component
),
'gii' => array(
'class' => 'system.gii.GiiModule',
'password'=>'.......',
'generatorPaths' => array(
'ext.giix-core', // giix generator
),
),
Upvotes: 3