![]() |
Extending Exceptions redux redux redux - 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: Extending Exceptions redux redux redux (/showthread.php?tid=9719) |
Extending Exceptions redux redux redux - El Forum - 07-06-2008 [eluser]TheresonAntaltego[/eluser] Greetings All! CI newbie here. ID# 52,409, with the Local 508 CI Newbies. I extended the show_404() function in the native exceptions class with success. Example: Code: class MY_Exceptions extends CI_Exceptions { The only change is the concatenation of the passed argument to the heading, so it is visible in the user output. Nice. But. If I try to extend the function to accept additional arguments, and display them instead of the default header and message entirely, it fails to recognize that the arguments were passed. Here is an example.: Code: class MY_Exceptions extends CI_Exceptions { So I know the extension is working, just not what I figured would be basic PHP principles. Any Ideas? Forgive me if a prior Exceptions-related topic covered and answered this problem. And/or if my folly is obvious. |