yakczh
V2EX  ›  问与答

业务类是放一个目录下 还是分到不同的模块里面 ?

  •  
  •   yakczh · Dec 10, 2014 · 2093 views
    This topic created in 4365 days ago, the information mentioned may be changed or developed.
    两种方案

    一种是单独一个目录,
    比如servics
    users.php
    message.php
    artitlcle.php

    另一种是分模块目录存放

    users\
      model\users.php
      controller\
      view\
    message\
      model\message.php
      controller\
      view\
    2 replies  •  2014-12-10 21:08:04 +08:00
    Sunyanzi
    Sunyanzi
    Dec 10, 2014
    1
    单独一个目录 ...
    jc4myself
    jc4myself
    Dec 10, 2014 via iPad
    2
    模块啊,好修改重构,分层有个manage就更好了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   870 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 21:59 · PVG 05:59 · LAX 13:59 · JFK 16:59
    ♥ Do have faith in what you're doing.