Hi everyone,
I have found some pieces of code that use a "shared" view but that is not exactly what I am after. Does anyone have piece of code that allows views to be rendered based on extended classes.
For example:
Modules/
- Base/
Views/
Index/
- index.phtml
- Admin
Views/
Index/
-
So in the example above if I am currently running in an "Admin" controller which extends a Base controller and the view doesnt exist in the admin module that it will go one module down to check if the view exists there?
So this could go multiple levels, Admin module extends Moderator module which extends base Module.
Anyone have any suggestions as to how this would best be approached?