Welcome Guest, Not a member yet? Register   Sign In
problem with custom controller constructor

(This post was last modified: 06-23-2022, 12:01 AM by groovebird.)


in the constructor i loaded models, settings and checked if access for the user is possible. All things i need throughout the controller. This is a good place until i need access to the request object. Why is this bad practice? What is the better way except overwriting the initController function or loading the request service ?

Messages In This Thread
RE: problem with custom controller constructor - by groovebird - 06-22-2022, 11:59 PM

Theme © iAndrew 2016 - Forum software by © MyBB