yii2-gii: Bad url in preview of the generated file

What steps will reproduce the problem?

I am following the steps of http://www.yiiframework.com/doc-2.0/guide-start-gii.html

Model Generator => Preview => click on name of generated file OR Model Generator => Preview => click on “diff” Button

What do you get instead?

Bad Request (#400): Missing required parameters: file

Additional info

I noticed the link being bad : index.php?r=gii%2Fdefault%2Fpreview&id=model&file=74e8f2c0aafe9daa499b0f31523a55d6

So I opened in a new tab index.php?r=gii%2Fdefault%2Fpreview&id=model&file=74e8f2c0aafe9daa499b0f31523a55d6

Now I get: “Code file not found: 74e8f2c0aafe9daa499b0f31523a55d6”

I just started to use YII today, so sorry I can not provide a lot of usefull info.

Q A
Yii version 2.0.10
PHP version
Operating system

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 20 (9 by maintainers)

Most upvoted comments

Configuring webserver is described well in the guide so closing it.