I have an admin section that has a sub-directory of the controllers
directory. I.e., the directory app/controllers/admin/
holds a set of files, each containing a controller for handling a separate portion of the admin section.
Now, I want to create a very simple admin homepage that just says something a la "welcome to the admin section", but I want to avoid creating an entire controller for this purpose, or placing the "action" method for this view in some other, arbitrary controller.
So, the question is, is there a way to route directly to a view -- to route directly to an HTML file? (And, I don t want to route to an HTML file from a requested path like /some-file.html
; I need to route from a path like /admin/
.)
Asking this question here is hardly worth the time it takes to create a stub controller, but I m sure I will have such a need again in the future.