CodeIgniter Forums
Can't find thread that talked about calling a second controller - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: General (https://forum.codeigniter.com/forumdisplay.php?fid=1)
+--- Forum: Lounge (https://forum.codeigniter.com/forumdisplay.php?fid=3)
+--- Thread: Can't find thread that talked about calling a second controller (/showthread.php?tid=65411)

Pages: 1 2


Can't find thread that talked about calling a second controller - skunkbad - 06-08-2016

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?


RE: Can't find thread that talked about calling a second controller - PaulD - 06-08-2016

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-63702-post-326068.html#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.


RE: Can't find thread that talked about calling a second controller - skunkbad - 06-08-2016

(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-63702-post-326068.html#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.


RE: Can't find thread that talked about calling a second controller - albertleao - 06-08-2016

Hey Skunk,

What scenario are you trying to accomplish? I'm curious what kind of workflow would require this.


RE: Can't find thread that talked about calling a second controller - skunkbad - 06-08-2016

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.


RE: Can't find thread that talked about calling a second controller - InsiteFX - 06-09-2016

See if this is what your looking for Brian.

Load Controller from within Controller


RE: Can't find thread that talked about calling a second controller - skunkbad - 06-09-2016

(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.


RE: Can't find thread that talked about calling a second controller - InsiteFX - 06-09-2016

Your very welcome.


RE: Can't find thread that talked about calling a second controller - skunkbad - 06-09-2016

Actually, what I ended up doing is just extending CI_Exceptions. I fiddled with the proposed MY_Loader, and had a bunch of problems.


RE: Can't find thread that talked about calling a second controller - InsiteFX - 06-09-2016

Ok Thanks good to know.