CodeIgniter Forums

Full Version: Can't find thread that talked about calling a second controller
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
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?
When I read your post I remembered a link I had in my userpanel (I keep quite a few).

I had this link recorded

Quote:controller calling controller
http://forum.codeigniter.com/thread-6370...#pid326068

But it seems to not be working at the moment. Perhaps it was deleted?

Might not have been the post you were looking for but it has definitely gone now.
(06-08-2016, 07:19 PM)PaulD Wrote: [ -> ]When I read your post I remembered a link I had in my userpanel (I keep quite a few).

I had this link recorded

Quote:controller calling controller
http://forum.codeigniter.com/thread-6370...#pid326068

But it seems to not be working at the moment. Perhaps it was deleted?

Might not have been the post you were looking for but it has definitely gone now.

Dang. Well, thanks for trying.
Hey Skunk,

What scenario are you trying to accomplish? I'm curious what kind of workflow would require this.
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.
See if this is what your looking for Brian.

Load Controller from within Controller
(06-09-2016, 02:53 AM)InsiteFX Wrote: [ -> ]See if this is what your looking for Brian.

Load Controller from within Controller

I do believe this was it. Thanks for finding this for me.
Your very welcome.
Actually, what I ended up doing is just extending CI_Exceptions. I fiddled with the proposed MY_Loader, and had a bunch of problems.
Ok Thanks good to know.
Pages: 1 2