php网站目录结构

WBOY
Release: 2016-06-23 14:29:11
Original
2374 people have browsed it

方案1:
root_dir
        ?config
        ?include
                                          news.php(基础处理类)
                                          member.php
                                          admin.php
        ?lib(文件夹内放置smarty的相关文件)
        ?templates
                ?news
                ?member
                ?admin
        ?templates_c
                ?news
                ?member
                ?admin               
        ?cache
                ?news
                ?member
                ?admin
        ?images
                ?news
                ?member
                ?admin
        ?js
        ?css
                news.css
                member.css
                admin.css
        ?news(新闻模块的php处理,例news_list.php,news_detail.php,news_insert.php诸如此类)
        ?member(用户模块的php处理)
        ?admin(管理模块的php处理)
        index.php

??????????????????-分割线????? ????????????????????
方案2:
root_dir
        ?config
        ?include
                                          news.php(基础处理类)
                                          member.php
                                          admin.php
        ?lib(文件夹内放置smarty的相关文件)
        ?news(新闻模块)
                ?templates
                ?templates_c
                ?cache
                ?images
                ?js
                ?css
        ?member(用户模块)
                ?templates
                ?templates_c
                ?cache
                ?images
                ?js
                ?css
        ?admin(管理模块)
                ?templates
                ?templates_c
                ?cache
                ?images
                ?js
                ?css
        index.php

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!