I have a problem. I have an ACL in controller LTEExecController, which goes back to SiteController, when it denies a user. But there the $layout variable points already to a view (hardcoded) with its navigation menu.
I need $layout to be changed based on the Controller that it came from.
How can I do that without being hacky? I don’t want $layout to be hardcoded. I want it to be dynamic.
I have only controller LteExecController and SiteController (plus the two parent controllers). When the access gets denied through the ACL, then it will instantiate the controller SiteController. How does your code help?