How to set the current template from the controller level
-
How to set the current template from the controller level
-
Do you mean theme? If so you can use the stylist package and its classes to set the theme.
For some inspiration look at the authentication routes, which if I remember correctly set the theme via the controller.
-
I created a flatly based theme, wanted to choose the right theme in the controller for the user
-
As I explained check the authentication controller for this.