Welcome Guest, Not a member yet? Register   Sign In
Load controller from another controller

I was wondering if it's possible to load a controller through another controller. As i've searched the internet i found some articles that people mentioned that this is "not a working practice for MVC pattern".

The reason i want to achieve such a thing is for situations like:
e.g.: Let's say i want to get something from the db and place in header or footer (analytics scripts, footer copyrights text etc..) and in order to have cleaner "view" files i want to create some controllers (sth like "common/header", "common/footer" etc.) and be able to load them in the other controllers.

Any ideas / suggestions on that? 


//Life motto
if (sad() == true) {

Messages In This Thread
Load controller from another controller - by HarrysR - 06-20-2019, 10:34 AM

Theme © iAndrew 2016 - Forum software by © MyBB