Is it possible to call a function in the App controller from another controller? If so, what’s the syntax?
I currently have some logic in the App controller (which seems like a logical place for it). But I need to use the results in the logic for some page template controllers too.
If it’s not possible to do, could someone suggest where would be a logical place to put the logic (e.g., MU plugin, somewhere else)?
Don’t call a method from another Controller… just create a Trait that has that method if it’s similar for both controllers or a helper function if it’s better