ディレクトリ構成
Moonyを使ってサイト構築するとしたら、ディレクトリ構成はこんな感じか。(<>で囲まれているのはディレクトリ)
- HogeAction.class.php (extends Action)
- ...
- ForwardAction.class.php (extends Action)
- config.yml (YAML format, paths settings)
- Action.class.php
- Controller.class.php
- Request.class.php
- Session.class.php
- View.class.php (use Smarty)
- Utils.class.php
- globals.php (constants definition)
- (Smarty libraties)
- (Spyc libraries)
-
-
- Hoge.tpl
- ...
- (Compiled templates are here)
-
- .htaccess (use mod_rewrite)
- dispatcher.php