最終更新:2008-12-13 (土) 01:41:47 (5585d)
Ethna
Top / Ethna
Ethna(えすな)は、PHPを利用したウェブアプリケーションフレームワークで似たようなコードを書かなくてよいことを目標に作成しています。
インストール
コマンド
- ethna add-action {actinname}
- ethna add-view -t {actionname} //-t with template
- ethna add-template {actionname}
- ethna add-app-object {tablename}
アクションクラス
- actionName=index_testにするとディレクトリになる
- '_'をディレクトリで区切り、ファイル名は大文字で開始
ファイル構成
- /etc/{appname}-ini.php
- /app/action
- /app/view
- /template/ja
View
- preforward
Action
- prepare
- performへの遷移前(バリデーションなどを行う)
- perform
/** * login_doアクションの実装 * * @access public * @return string 遷移名 */
Form
- バリデートのデータ
- 独自バリデートの関数
URL
- http://some.host/~foo/?action_{actionName}=true
名前
- actionform
- af actionclass
- perform