Welcome Guest, Not a member yet? Register   Sign In
Using Preloaded Model Via BaseController in Other Controllers
#8

@InsiteFX, @includebeer

Thank you for your replies and help.  I think I will split the difference in what I will implement.

In my BaseController, I will obtain the current url as an object instance via the URL Helper, as it is automatically loaded on every request.

PHP Code:
$this->_url_request current_urltrue ); 

I then pass that parameter to the model(s) from the controller.  If that is in-keeping with MCV patterns, I am happy to go with it.

Thanks again, much appreciated.
Reply


Messages In This Thread
RE: Using Preloaded Model Via BaseController in Other Controllers - by Mr Lister - 10-13-2021, 12:58 AM



Theme © iAndrew 2016 - Forum software by © MyBB