Skip to content

Instantly share code, notes, and snippets.

@suin
Created October 15, 2012 06:31
Show Gist options
  • Save suin/3891076 to your computer and use it in GitHub Desktop.
Save suin/3891076 to your computer and use it in GitHub Desktop.
XOOPS 構造変更案

1 オーソドックス

xoops_trust_path/modules/xcore
├── actions
├── admin
├── blocks
├── class <-- ここに現在の html/core を入れ込む
├── forms
├── images
├── include
├── index.php
├── kernel
├── language
├── lib
├── preload
├── service
└── templates
└── xoops_version.php

2 PSR-0準拠 コードとリソースをより分離

xoops_trust_path/modules/xcore
├── index.php
├── resources
│   ├── public
│   │   ├── css
│   │   ├── images
│   │   └── js
│   └── templates
├── src
│   └── XCore
│       ├── Action
│       ├── Admin
│       ├── Form
│       ├── Kernel <-- ここに現在の html/core を入れ込む
│       ├── Preload
│       └── Service
└── xoops_version.php

3 PSR-0準拠 Symfony2ライク

├── index.php
├── src
│   └── XCore
│       ├── Action
│       ├── Admin
│       ├── Form
│       ├── Kernel <-- ここに現在の html/core を入れ込む
│       ├── Preload
│       ├── Resources
│       │   ├── public
│       │   │   ├── css
│       │   │   ├── images
│       │   │   └── js
│       │   └── templates
│       └── Service
└── xoops_version.php
@suin
Copy link
Author

suin commented Nov 17, 2012

xcoreRender -> xcore に移動したときにファイル名が重複するファイル:

xcore/admin/forms/ThemeSelectForm.class.php
xcore/admin/index.php
xcore/admin/menu.php
xcore/admin/templates/stylesheets/module.css
xcore/class/AbstractDeleteAction.class.php
xcore/class/AbstractEditAction.class.php
xcore/class/AbstractFilterForm.class.php
xcore/class/AbstractListAction.class.php
xcore/class/ActionFrame.class.php
xcore/class/Module.class.php
xcore/class/theme.php
xcore/language/english/admin.php
xcore/language/english/help/help.html
xcore/language/english/modinfo.php
xcore/language/ja_utf8/admin.php
xcore/language/ja_utf8/help/help.html
xcore/language/ja_utf8/modinfo.php
xcore/language/japanese/admin.php
xcore/language/japanese/help/help.html
xcore/language/japanese/modinfo.php
xcore/preload/ThemeSelect.class.php
xcore/xoops_version.php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment