Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modeldoc not showing up #20

Open
ghost opened this issue Oct 27, 2014 · 5 comments
Open

modeldoc not showing up #20

ghost opened this issue Oct 27, 2014 · 5 comments

Comments

@ghost
Copy link

ghost commented Oct 27, 2014

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
Copy link
Owner

Does this give the path expected:

echo Yii::getPathOfAlias('ext.gii-modeldoc-generator.gii');

@ghost
Copy link
Author

ghost commented Oct 28, 2014

gives:

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

@cornernote
Copy link
Owner

Seems different to the path in your original post:

/var/www/html/protected/extensions

VS

/var/www/professionalworks/protected/extensions

@ghost
Copy link
Author

ghost commented Oct 29, 2014

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

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

@cornernote
Copy link
Owner

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',
            ),
        ),
    ),
  1. 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant