【发布时间】:2017-04-29 11:38:54
【问题描述】:
我的项目结构:
├── apps
│ ├── backend <= Micro
│ └── frontend <= Application
├── public
│ ├── css
│ ├── index.php <= Single entry point
│ └── js
└── vendor
├── ...
注意:我不想使用两个入口点,像这样:
├── apps
│ ├── ...
├── www
│ ├── css
│ ├── index.php <= Entry point for Frontend
│ └── js
├── api
│ ├── index.php <= <= Entry point for Backend
它仍然是一个备用选项。
问题:
- 告诉我在哪里可以看到此类项目的示例?
- 如果选择的项目组织方式是错误的,什么是正确的?
在这两种情况下,我都想获得以下文件的示例代码:
public/index.php // or www/index.php & api/public.php
apps/forntend/Module.php // or something similar
apps/backend/Module.php // or something similar
以及我应该如何组织路线、调度员等的工作。
【问题讨论】:
标签: php api model-view-controller phalcon