cornernote / gii-modeldoc-generator

Extends Gii allowing an update to existing models with phpDocumentor compatible tags.
http://cornernote.github.io/gii-modeldoc-generator
Other
12 stars 4 forks source link

modeldoc not showing up #20

Open ghost opened 10 years ago

ghost commented 10 years ago

downloaded this archive: https://github.com/cornernote/gii-modeldoc-generator/releases/latest

extracted: user@work:/var/www/html/protected/extensions$ ls -laht gii-modeldoc-generator/ insgesamt 48K drwxrwxrwx 37 www-data www-data 4,0K Okt 27 16:04 .. drwx------ 11 max max 4,0K Okt 27 16:01 tests drwx------ 5 max max 4,0K Okt 27 16:01 . drwx------ 2 max max 4,0K Okt 27 16:01 screenshot drwx------ 3 max max 4,0K Okt 27 16:01 gii -rw-rw-r-- 1 max max 374 Okt 12 10:26 codeception.yml -rw-rw-r-- 1 max max 562 Okt 12 10:26 composer.json -rw-rw-r-- 1 max max 42 Okt 12 10:26 .gitignore -rw-rw-r-- 1 max max 1,6K Okt 12 10:26 LICENSE -rw-rw-r-- 1 max max 5,3K Okt 12 10:26 README.md -rw-rw-r-- 1 max max 846 Okt 12 10:26 .travis.yml

and config: 'gii' => array( 'class' => 'system.gii.GiiModule', 'ipFilters' => array('127.0.0.1', '::1'), 'generatorPaths' => array( 'bootstrap.gii', 'ext.gii-modeldoc-generator.gii' ) ),

no link is showing up in gii....

any ideas??

cornernote commented 10 years ago

Does this give the path expected:

echo Yii::getPathOfAlias('ext.gii-modeldoc-generator.gii');
ghost commented 10 years ago

gives:

/var/www/professionalworks/protected/extensions/gii-modeldoc-generator/gii

cornernote commented 10 years ago

Seems different to the path in your original post:

/var/www/html/protected/extensions

VS

/var/www/professionalworks/protected/extensions

ghost commented 10 years ago

sry,.. changed the path between posts....buts its the same for sure!

so it must be another problem....any hints?

cornernote commented 10 years ago

I did the following:

1) Downloaded Yii 1.1.15 to /path/to/project/yii-1.1.15.022a51.

2) Download Gii ModelDoc Generator 1.2.5 to /path/to/project/protected/extensions/gii-modeldoc-generator.

3) Run yiic to create a web app: /path/to/project/yii-1.1.15.022a51/framework/yiic webapp /path/to/project

4) Add gii to /protected/config/main:

    'modules'=>array(
        'gii'=>array(
            'class'=>'system.gii.GiiModule',
            'password'=>false,
            // If removed, Gii defaults to localhost only. Edit carefully to taste.
            'ipFilters'=>array('127.0.0.1','::1'),
            'generatorPaths' => array(
                'ext.gii-modeldoc-generator.gii',
            ),
        ),
    ),

5) View in a browser at http://localhost/project/index.php?r=gii.

Everything worked correctly. I could see ModelDoc Generator at the bottom of the Gii list.

I uploaded the code here so you can see it: https://github.com/cornernote/gii-modeldoc-generator-example