Skip to content

Instantly share code, notes, and snippets.

@nazering
Created September 26, 2012 08:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nazering/3786715 to your computer and use it in GitHub Desktop.
Save nazering/3786715 to your computer and use it in GitHub Desktop.
dietcake-hello/Directory Memo
.
├── app
│   ├── app_controller.php //Controllerクラスの派生クラス。$default_view_classを定義
│   ├── app_exception.php //Exceptionクラスの派生クラス。例外に関して?
│   ├── app_layout_view.php //Viewクラスの派生クラス。表示させる内容とレイアウトのレンダリング。
│   ├── app_model.php //Modelクラスの派生クラス。モデルに関して?
│   ├── config
│   │   ├── bootstrap.php //app_controller.php, app_model.php, app_layout_view.php, app_exception.php, html_helper.php, log.php呼び出し。spl_auto_register関数を使って、コントローラかモデルを呼んでる?
│   │   ├── core.php //ホスト名,起点となるパス,このアプリケーションのURL,php.ini周りの設定をする
│   │   ├── core_development.php //core.phpのテンプレ(開発用)。ENV_PROTECTION:false, display_errors:on
│   │   ├── core_production.php //core.phpのテンプレ(本番用)。ENV_PROTECTION:true, display_errors:off
│   │   └── log.php //ログ出力に関する設定。
│   ├── controllers
│   │   └── hello_controller.php //Helloモジュールのコントローラ(モデルの呼び出しとか)
│   ├── helpers
│   │   └── html_helper.php //汎用的で補助的な処理を書く?(エスケープ処理とか)
│   ├── models
│   │   └── hello.php //Helloモジュールのモデル
│   ├── tests
│   │   └── empty //???
│   ├── tmp
│   │   └── logs
│   │   ├── access_log //アクセスログ
│   │   ├── empty
│   │   ├── error_log //エラーログ
│   │   └── php.log //PHPのログ?
│   ├── views
│   │   ├── hello
│   │   │   └── index.php //HelloモジュールのView(テンプレート)。コントローラの変数を埋め込める。
│   │   └── layouts
│   │   └── default.php //デフォルトのレイアウト表示(ナビゲーションバーとか共通部分のレイアウトを書いたり?)
│   └── webroot
│   ├── bootstrap //Twitter Bootstrap
│   │   ├── css
│   │   ├── img
│   │   └── js
│   └── index.php //こいつがリクエストされると、dietcake.php, bootstrap.php, core.php, Dispatcher::invoke()を呼ぶ。
├── dietcake //フレームワーク本体のコード
│   ├── LICENSE
│   ├── README.md
│   ├── core
│   │   ├── controller.php //コントローラに関する基底クラス
│   │   ├── dispatcher.php //ディスパッチャに関する基底クラス(コントローラ/アクション名の取得など)
│   │   ├── exception.php //Core.phpのExceptionクラスの派生クラス
│   │   ├── inflector.php //文字列の大文字小文字の変換、アンダースコアの変換など?
│   │   ├── model.php //モデルに関する基底クラス
│   │   ├── param.php //$_REQUESTの値を確認して、セットされているものを返す
│   │   └── view.php //ビューに関する基底クラス
│   ├── dietcake.php //フレームワーク本体。ディレクトリ名を定義したり、core/のphpを呼んでる
│   └── tests //テスト用コード?
│   ├── bootstrap.php
│   ├── controller_test.php
│   ├── dispatcher_test.php
│   ├── inflector_test.php
│   ├── model_test.php
│   ├── param_test.php
│   └── phpunit.xml
├── lib
│   └── empty
└── vendor
└── empty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment