Question

I have used the crud generator of yii successfully for a model named Accounts.

It created the files and everything seems right, but when I navigate to page url it says :

Not Found (#404)

Unable to resolve the request "account".

here is the structure:

backend

 models
   Accounts

 controllers
   accountController

 Views
   account
     index
     _form
     _search
     create
     update
     view

the url /floshal2/backend/web/index.php?r=account

Was it helpful?

Solution

Yii is using camel-case naming mostly. accountController should be "AccountController".

However, it should have been generated that way. I'll open a issue on the tracker...

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top