13. Vie w s PH P
PHP
mode l PHP
PH P
CodeIgniter
P HP
he lper PHP
PH P
P HP
HMVC化された状態
application PH P
P HP
C ont r oller s PH P
Vie w s PH P
PH P
PHP
application PHP
PHP
Controllers PHP mode l PHP
PH P
P HP
he lper PHP
PH P
P HP
Views PHP
PHP
PHP
application PH P
P HP
C ont r oller s PH P
modules
Vie w s PH P
PH P
PHP
PHP
model PHP
PHP mode l PHP
PH P
P HP
he lper PHP
PH P
P HP
helper PHP
PHP
PHP
application PH P
P HP
C ont r oller s PH P
36. Vie w s PH P
Aさんの場合
PHP
作業 mode l PHP
PH P
P HP
Aさん作業用モジュール
の中でmodel_user.phpを作成
he lper PHP
PH P
P HP
完成したら上の階層へ設置
application PH P
P HP
C ont r oller s PH P
Vie w s PH P
PH P
PHP
application PHP
PHP
Controllers PHP mode l PHP
PH P
P HP
he lper PHP
PH P
P HP
Views PHP
PHP
完成したら
PHP
上階層に設置 application
C ont r oller s
PH P
P HP
PH P
modules
Vie w s PH P
PH P
PHP
PHP
model PHP
PHP mode l PHP
PH P
P HP
he lper PHP
PH P
P HP
helper PHP
PHP
PHP
application PH P
P HP
C ont r oller s PH P
37. Vie w s PH P
PHP
Bさんの場合 mode l PHP
PH P
P HP
リスト表示をさせる機能を実装する
he lper PHP
PH P
P HP
モジュールに、model_user.php
のモックを設置。
モックからデータを受け取り、
application PH P
P HP
C ont r oller s PH P
Controllerファイルと
ここで作業 Vie w s PH P
PH P
PHP
viewファイルを作成
PHP
application
Controllers
PHP
PHP mode l PHP
PH P
P HP
he lper PHP
PH P
P HP
Views PHP
PHP
PHP
application PH P
P HP
C ont r oller s PH P
modules
Vie w s PH P
PH P
PHP
PHP
Aさん未完成
model PHP
PHP mode l PHP
なので、まだ
PH P
P HP
ファイルはない。
he lper PHP
PH P
P HP
helper PHP
PHP
PHP
application PH P
P HP
C ont r oller s PH P
38. Vie w s PH P
PHP
Cさんの場合 mode l PHP
PH P
P HP
詳細情報を表示する機能を実装する
he lper PHP
PH P
P HP
モジュールに、model_user.php
のモックを設置。
モックからデータを受け取り、
application PH P
P HP
C ont r oller s PH P
Controllerファイルと
Vie w s PH P
PH P
PHP
viewファイルを作成
PHP
application
Controllers
PHP
PHP mode l PHP
PH P
P HP
he lper PHP
PH P
P HP
Views PHP
PHP
PHP
application PH P
P HP
C ont r oller s PH P
modules
ここで作業 Vie w s PH P
PH P
PHP
PHP
Aさん未完成
model PHP
PHP mode l PHP
なので、まだ
PH P
P HP
ファイルはない。
he lper PHP
PH P
P HP
helper PHP
PHP
PHP
application PH P
P HP
C ont r oller s PH P
39. Vie w s PH P
PHP
BさんとCさん モックを
mode l PHP
PH P
P HP
削除
モックの状態の
he lper PHP
PH P
P HP
モジュール内の
models/model_users.phpを削除。
application
C ont r oller s
PH P
P HP
PH P
上階層のmodels/model_users.php
Vie w s PH P
を読み込み動作させる。
PH P
PHP
application PHP
PHP
Controllers PHP モックを
mode l PHP
PH P
削除
P HP
he lper PHP
PH P
P HP
Views PHP
PHP
PHP
application PH P
P HP
C ont r oller s PH P
modules
Vie w s PH P
PH P
PHP
PHP
Aさん完成
models PHP
PHP mode l PHP
ファイルを設置。
PH P
P HP
he lper PHP
PH P
P HP
helper PHP
PHP
PHP
application PH P
P HP
C ont r oller s PH P