forked from rcoelho/giix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL
59 lines (48 loc) · 1.81 KB
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
Installing giix
===============
Downloading
-----------
Always download the latest release from the extension page at:
http://www.yiiframework.com/extension/giix
Before installing
-----------------
1) Make sure you read the Yii guide at <http://www.yiiframework.com/doc/guide>.
2) Read the Gii documentation at <http://www.yiiframework.com/doc/api/GiiModule>.
3) Read giix README file. Please give special attention to the "requirements" section.
Installing
----------
1) Extract the directory "giix" from the
downloaded archive into your application's protected/extensions directory.
2) Configure the gii generator path in your application, like:
'modules' => array(
'gii' => array(
'class' => 'system.gii.GiiModule',
'generatorPaths' => array(
'ext.giix.generators', // giix generators
),
),
),
3) Configure your application to automatically load the giix component classes
when needed, like:
'import' => array(
...
'ext.giix.components.*', // giix components
),
4) Register the giix messages directory, like the example below.
Note: This feature is pending on Yii core (as of Yii 1.1.8 revision 3364). You will need to patch your Yii instalation.
See <http://code.google.com/p/yii/issues/detail?id=2624> for details and the patch.
'components' => array(
...
'messages' => array (
// Pending on core: http://code.google.com/p/yii/issues/detail?id=2624
'extensionBasePaths' => array(
'giix' => 'ext.giix.messages', // giix messages directory.
),
),
),
It is recommended to set at least the 'password' and 'ipFilters' properties
in gii for security.
For more information see the gii documentation at <http://www.yiiframework.com/doc/api/GiiModule>.
Additionaly, you may remove the entire 'generators' directory and generator
configuration (step 2 above) when releasing your Web application for improved
security.