PHP +模块化结构+包括

时间:2013-08-19 03:01:34

标签: php data-structures directory modular

我正在尝试在我的网站中创建一个后端面板,以便每个客户都可以管理基本设置。我的想法是使它模块化,所以我有以下文件夹结构:

  • CSS
  • IMG
  • LIB
  • 模块
    • 用户
      • 如default.php
      • 单user.php的
      • 用户list.php的
      • 的functions.php
    • 类别
      • 如default.php
      • 的functions.php
  • PHP
  • 的index.php
  • 的.htaccess

处理这种结构的最佳方法是什么。我想使用index.php来包含模块文件,例如:

mysite.com/admin/users/single-user?id=1 变换 mysite.com/admin/index.php?module=users&view=single-user

我很感激任何想法,非常感谢!

0 个答案:

没有答案
相关问题