picasso250
V2EX  ›  问与答

[PHP]在zf2的mvc和db上又包了一层框架。是否应该是使用Exception做出错处理?

  •  
  •   picasso250 · Jul 15, 2013 · 2975 views
    This topic created in 4721 days ago, the information mentioned may be changed or developed.
    我认为应该用。优雅灵活强大。如不用,if($result===false) {$model->rollback();return 'error';}这种代码随处可见。

    但现实是我们项目没有在用。
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2563 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 11:49 · PVG 19:49 · LAX 04:49 · JFK 07:49
    ♥ Do have faith in what you're doing.