picasso250
V2EX  ›  问与答

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

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