CodeIgniter Forums
Calling a Controller from a hook in CI 3 - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Calling a Controller from a hook in CI 3 (/showthread.php?tid=60884)



Calling a Controller from a hook in CI 3 - El Forum - 07-21-2014

[eluser]Patroklo[/eluser]
Hi! I am having some issues about loading a controller with a hook. All the autoloaded classes seem to fail with messages like: "Unable to locate the specified class: Session.php". In codeigniter 2.X i didn't have this issue (and I think that in that version all the files where loaded twice, once each time a controller was made). Is there a way to make those calls in codeigniter 3?


Calling a Controller from a hook in CI 3 - El Forum - 07-31-2014

[eluser]Narf[/eluser]
You're not supposed to do that. Not even in CI 2.x ... if you somehow made it without breaking the app, you've been quite lucky.