webuilder240 / sphere-ec

0 stars 0 forks source link

ディレクトリ構成を検討する。 #7

Open webuilder240 opened 8 years ago

webuilder240 commented 8 years ago

wordpressの構成

wp-admin/ (管理画面関連の実装がつめ込まれている.) wp-content/ (テーマ関連とか「ユーザーが弄る所」) wp-include/ (関数郡?) index.php (多分ココがドキュメントルートになっている。

Sphere-Ecの構成(の理想)

core/ -> update 対象
 admin/
   controllers/
   views/
    sessions/
     login
     logout
 front/
  controllers/
   base_controller.php
   top_controller.php
   product_controller.php
   cart_controller.php
   registration_controller.php
   session_controller.php
   purchase_controller.php
 core/
  models/
   xxx.php
   session.php(sessionを扱う)
  services/
  view_helper/
  util/
  mailers/
  router.php
 installer/
  schema.sql
vendors/ -> update対象
themes/ 
config.php -> (db設定, Root)
index.php -> (install.phpが存在する場合は install.phpを読み込み)
tests/
install/
 index.php
 step2.php
 finish.php

自動インストーラーを導入するのであれば、zipに固めるものか、 リポジトリにvendorを含める必要があるのでは?

TODO

css/
 style.css
images/
javascripts/
 app.js
templates/
 mailers/
 parts/
  header.php
  sidebar.php
  footer.php
 404.php
 home.php
 layout.php
 products/
  index.php
  show.php
 session/
  login.php
 users/
  registration.php
  registration_cofirm.php
  please_activate.php
  edit.php
 carts/
  index.php
 purchase/ 
   index.php
   before.php
   confirm.php
   thanks.php
webuilder240 commented 8 years ago

Slimベースのオレオレフレームワークになってしまう。 これで大丈夫なのだろうか。不安はある。

webuilder240 commented 8 years ago

MVC重いなぁ…