Slide 62
Slide 62 text
62
View 層の比較 - コード比較 case 2
{{-- パッケージ "laravelcollective/html" の
インストール・設定が必要 --}}
{!!
Form::open(
[
'url' => '/user',
'method' => 'post',
]
);
!!}
{!!
Form::text('email', 'example@gmail.com');
!!}
// デフォルトで利用可能
echo $this->Form->create(
$userEntity,
[
'url' => '/user',
'type' => 'POST',
]
);
echo $this->Form->input(
'email',
[
'type' => 'text',
'value' => 'example@gmail.com',
]
);