Weitere ähnliche Inhalte
Ähnlich wie Hakodate - simple framework (20)
Mehr von Hiroaki Murayama (13)
Hakodate - simple framework
- 10. MCV
Model
* Model
–
module/xxxx.php
* Controller
–
index.php
* View
–
inc_xxxx.php
- 14. 便利な関数群
* out関数
* 配列をテーブル表示してくれる関数
* get関数
* クエリを引数として渡すことで、レコードの配列を取得する
* getAll関数
* get関数の複数レコードを取得できる関数
* put関数
* 新しいレコードを追加する関数
- 17. Future
* getの安全化
* ‘user_id
=’.$user_id → ‘user_id
=
%d’
* 実行速度を測れるようにしたい
* DBの切り替え