You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi all, i'm using gii to generate only my controller.
I want to create it in my directory "app\controllers\set\MyController"
I generate without problem and it tell me: The controller has been generated successfully. You may try it now
The link point to: http://mydomain.com/my/index
but it generate 404 not found because the right link is: http://mydomain.com/set/my/index
i don't know if it's a bug or not.
Bye
The text was updated successfully, but these errors were encountered:
The controller must be located under controllers directory. If you want to prefix route with set - pack your controller in the set module, or simply configure appropriate rule in UrlManager.
It you wanna know how, read the runtime routing section and the modules section as well.
hi all, i'm using gii to generate only my controller.
I want to create it in my directory "app\controllers\set\MyController"
I generate without problem and it tell me: The controller has been generated successfully. You may try it now
The link point to: http://mydomain.com/my/index
but it generate 404 not found because the right link is: http://mydomain.com/set/my/index
i don't know if it's a bug or not.
Bye
The text was updated successfully, but these errors were encountered: