Unable to resolve the request

Hi all, i’m working on yii2 from few days.

I have a simply table on my db called "profile_cat"

I use gii to generate

  • Model: ProfileCat

  • CRUD: ProfileCatController

well done, no error and i see Model/Controller/View of my table.

But when i try to call


/web/index.php?r=ProfileCat

hi have this error


Not Found (#404)

Unable to resolve the request "ProfileCat".


The above error occurred while the Web server was processing your request.


Please contact us if you think this is a server error. Thank you.



I also try to call


/web/index.php?r=ProfileCat/Index

with the Action, but nothing i have the same error.

Can anyone help me?

Thank’s

It is:


/web/index.php?r=profile-cat/index

But this depends if you are using pretty url, .htaccess or similar.

Here you can read rules about controller class and action naming.

Thank you very much, i have read that page but i miss this section. :blink: