• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can't find thread that talked about calling a second controller

#1
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?
Reply

#2
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.
Reply

#3
(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.
Reply

#4
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!
Reply

#5
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.
Reply

#6
See if this is what your looking for Brian.

Load Controller from within Controller
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply

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

#8
Your very welcome.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply

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

#10
Ok Thanks good to know.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.