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

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

Hi,

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 ?
Reply


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