This is rather a general question about MVC.
I have a set of templates for multiple controllers and their actions. All of them inherit from a overall template that contains footer/header.
I want header to render email of currently logged in user. Common task.
All tutorials are too simple to have basic example of how and where do I pass common data for all controller actions (set of actions).
Do I need to modify BaseController to add data to tmpl_context? Or create another class like BaseControllerForActionsWithHeaderData that has _before_ method that sets tmpl_context.email... ?