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

Did you think of using a library for that? Or create a MY_Controller.php in the application/core folder. Write a method to generate a common set of views or even different sets of views.
Let all your controllers (which are classes) extend the MY_Controller's class. Like that, you can use "common" methods in all your controllers.
Reply


Messages In This Thread
RE: Load controller from another controller - by Wouter60 - 06-20-2019, 12:46 PM



Theme © iAndrew 2016 - Forum software by © MyBB