picasso250
V2EX  ›  问与答

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

  •  
  •   picasso250 · Jul 15, 2013 · 2951 views
    This topic created in 4703 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   ·   3945 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 96821589 · 505ms · UTC 00:55 · PVG 08:55 · LAX 17:55 · JFK 20:55
    ♥ Do have faith in what you're doing.