I did it like in the screenshot: http://prntscr.com/b11ulo I type the following line in my browser http: //yii2lesson/index.php? R = album% 2Findex , the following error comes out: http://prntscr.com/b11vb5

Closed due to the fact that off-topic participants Dmitriy Simushev , zRrr , cheops , D-side , aleksandr barakin 8 May '16 at 9:21 .

It seems that this question does not correspond to the subject of the site. Those who voted to close it indicated the following reason:

  • “Questions asking for help with debugging (“ why does this code not work? ”) Should include the desired behavior, a specific problem or error, and a minimum code for playing it right in the question . Questions without an explicit description of the problem are useless for other visitors. See How to create minimal, self-sufficient and reproducible example . " - Dmitriy Simushev, zRrr, cheops, D-side, aleksandr barakin
If the question can be reformulated according to the rules set out in the certificate , edit it .

  • Did you create everything? - Sergalas
  • no need to fill the view path - NNN

2 answers 2

do not fill the view path field

    The Model class , Search model Class and Controller Class fields specify the full class names, including namespaces. For example app \ models \ Album .

    The View Path field indicates the path to the directory for creating views. For example, G: \ OpenServer \ domains \ localhost \ yii2lesson \ views \ album . For convenience, in Yii 2 you can use pseudonyms (aliases) and specify the path like this: @ app / views / album .

    In your case, you can even leave the View Path field empty; Gii will set up the desired path by itself.

    Plus, Gii has handy tooltips with fill examples: Yii 2 Gii popup hint