• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multiple Exception Sub Classes With CodeIgniter

#3
[eluser]Unknown[/eluser]
[quote author="Aken" date="1347322012"]Various options:

1) Include them in /application/config/constants.php
2) Extend the Exceptions class by creating a file at /application/core/MY_Exceptions.php, and define them in that file along with the extended Exceptions class (which wouldn't have anything in it unless you wanted to add something specific).
3) Add them to index.php, or have index.php include/require a file that has them defined.

There isn't a specific use case for this that is "standard CI way". But CI is just PHP, so use native PHP in whatever way is convenient for you.[/quote]
Option 2 is similar to a solution in the post I mentioned. I think I'll just use that then.

Thanks Aken.


Messages In This Thread
Multiple Exception Sub Classes With CodeIgniter - by El Forum - 09-09-2012, 08:39 PM
Multiple Exception Sub Classes With CodeIgniter - by El Forum - 09-10-2012, 05:06 PM
Multiple Exception Sub Classes With CodeIgniter - by El Forum - 09-11-2012, 03:06 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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