views:

204

answers:

1

Maybe, it's a bit silly, but does anybody thought about adding exceptions to Codeigniter Config Class(Library). Not sure, it is(will be) a good practice, but i suppose throwing an exception instead of just returning false is better.

For example, if we have something connected with user payments. Usually(?), we'll take some configurable data from codeigniter config files. Imagine, we've done a typical error specifying config index, and CI will return just false, which may cause some logic(!not syntax) error in this software.

+1  A: 

this would probably be best if you brought it up in the codeigniter forums. that way ellislab can see it...

http://codeigniter.com/forums/

Tom Schlick
Thanks, you're right, i've followed your advice :)
DCrystal