+ -
当前位置:首页 → 问答吧 → 基于模版构建大型项目的时候怎样的目录结构比较好?

基于模版构建大型项目的时候怎样的目录结构比较好?

时间:2007-03-15

来源:互联网

问题如题目;
下面是我现在的目录结构:
--adodb //adodb的类
--cache //缓存目录
--compiles //编译后的文件
--configs   //配置文件
--images   //图片
    --menu //树图片
    --common //公共图片
--libs
   --menu //菜单类
   --common//公共类
   --pages//页面类
--js
   --common //公共所用js
   --pages   //页面所用js
      --module1  
      --module2  
      --module3  
      --module4  
   --menu //菜单所用js
--pages         //存放所有页面的.php文件
   --module1  //模块目录
   --module2
   --module3
   --module4
--style
    --common.css
--templates   //模版目录
   --module1  //模块1的模版
   --module2
   --module3
   --module4
--index.php

这是我的目录结构,请大家给点意见!

问题:文件的结构细化会影响程序的运行速度吗?

我用smarty。。。它被我直接放在了libs下

作者: tender_online   发布时间: 2007-03-15

自己顶

作者: tender_online   发布时间: 2007-03-15

代码是写给人看的,不是机器.

作者: 书生   发布时间: 2007-03-15

我想知道有什么利弊

作者: tender_online   发布时间: 2007-03-16

分的不错阿!我认为只要看着清晰 一目了然就行了

作者: niohe   发布时间: 2007-03-16

相关阅读 更多