I have a base controller that gets certain default properties based on the domain name for every request. These include app_id
and language_id
.
What would be the recommended way to get these values set in my models, so that for example if I tried to create a new Post
model it would have the app_id
and language_id
set by the values defined in my base_controller.
Kind regards to any response.