Since my site had an admin section and a normal (front-end user) section, I needed to structure the articles controller in such a way that it was RESTful.
So what I did was , have 2 articles controllers, 1 nested under the admin namespace (which would result in admin/articles) and the other one as a normal articles resource (/articles). (I followed this blog.)
Now I started facing issues such as
A copy of AuditObserver has been removed from the module tree but is still active!
2 questions .
- Is this error really because of me using such a structure of nested resources?
- Is it a good programming practice to use such a structure? If not, is there a better alternative?
Thanks!