Posts: 1,298
Threads: 62
Joined: Oct 2014
Reputation:
86
It was about a year or two ago, somebody here posted some code that allowed one to call a controller from within a different controller. I'm trying to find that thread but can't.
Actually, I'm trying to call a controller from a helper function, and thought this elusive thread might help.
Anyone know where it is?
Posts: 477
Threads: 18
Joined: Oct 2014
Reputation:
21
Hey Skunk,
What scenario are you trying to accomplish? I'm curious what kind of workflow would require this.
Codeigniter is simply one of the tools you need to learn to be a successful developer. Always add more tools to your coding arsenal!
Posts: 1,298
Threads: 62
Joined: Oct 2014
Reputation:
86
Custom error page generation. Scenario is that certain errors trigger a 503, but those errors happen in a library, and are called through a helper function, show_503(). Generated page must be styled like main template, and I'm not interested in maintaining a separate error view.
Posts: 1,298
Threads: 62
Joined: Oct 2014
Reputation:
86
Actually, what I ended up doing is just extending CI_Exceptions. I fiddled with the proposed MY_Loader, and had a bunch of problems.