开发者

Codeigniter add Exceptions to Config class

Maybe, it's a bit silly, but does anybody thought about adding exceptions to Codei开发者_运维百科gniter 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.


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

http://codeigniter.com/forums/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜