Zend Framework教程-应用的目录结构

2013.04.27 No Comments

root@coder-671T-M:/mydev_src/zend_framework_learn/www/zf_demo2# tree
.
├── application应用主目录
│ ├── Bootstrap.php
│ ├── configs配置文件存放目录
│ │ └── application.ini应用默认配置文件
│ ├── controllers控制器
│ │ ├── ErrorController.php
│ │ └── IndexController.php
│ ├── formsform存放目录
│ │ └── TestForm.php
│ ├── layouts布局存放目录
│ │ └── scripts
│ │ └── layout.phtml
│ ├── models 模型目录
│ ├── modules 模块目录
│ │ └── testmod 指定的模块
│ │ ├── controllers指定模块的控制器
│ │ │ └── NewsManageController.php
│ │ ├── formsform目录
│ │ │ └── TestForm.php
│ │ ├── models模型目录
│ │ │ ├── DbTable数据表相关目录
│ │ │ │ └── TblUser.php
│ │ │ └── MyModel.php
│ │ └── views视图文件目录
│ │ ├── filters过滤器
│ │ ├── helpershelper
│ │ └── scripts视图脚本
│ │ └── news-manage
│ │ ├── add.phtml
│ │ ├── edit.phtml
│ │ ├── editx.phtml
│ │ └── index.phtml
│ └── views视图文件目录
│ ├── helpers
│ └── scripts
│ ├── error
│ │ └── error.phtml
│ └── index
│ └── index.phtml
├── docs
│ └── README.txt
├── library第三方库文件存放目录
├── public公共资源存放目录
│ └── index.php入口文件
└── tests测试目录
├── application
│ └── controllers
│ └── IndexControllerTest.php
├── bootstrap.php
├── library
└── phpunit.xml

30 directories, 21 files

 

 

以上就是zendframework的基本目录结构,要注意目录的的命名方式。

Related Posts:

评论已关闭。