このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
|
apricot:app:home [2020/05/12 23:08] y2sunlight [翻訳テキスト] |
apricot:app:home [2020/05/23 16:18] (現在) y2sunlight [ホームコントローラ] |
||
|---|---|---|---|
| 行 14: | 行 14: | ||
| * [[apricot: | * [[apricot: | ||
| * [[apricot: | * [[apricot: | ||
| - | * [[apricot: | + | * [[apricot: |
| * [[apricot: | * [[apricot: | ||
| * [[apricot: | * [[apricot: | ||
| - | * [[apricot: | + | * [[apricot: |
| アプリのホーム画面を作ります。\\ | アプリのホーム画面を作ります。\\ | ||
| - | 画面の作り方の基本は[[apricot: | + | 画面の作り方の基本は[[apricot: |
| ---- | ---- | ||
| 行 73: | 行 73: | ||
| /** | /** | ||
| - | | + | |
| */ | */ | ||
| class HomeController extends Controller | class HomeController extends Controller | ||
| 行 83: | 行 83: | ||
| public function index() | public function index() | ||
| { | { | ||
| - | $message = 'Welcomt to '.env(' | + | $message = __('messages.home.msg_hello', |
| return render(' | return render(' | ||
| } | } | ||
| 行 89: | 行 89: | ||
| </ | </ | ||
| + | * ''< | ||
| + | * '' | ||
| * ボイラープレートのrender()関数を呼び出してレスポンスをレンダリングしています | * ボイラープレートのrender()関数を呼び出してレスポンスをレンダリングしています | ||
| * **render(string $view=null, array $variables=[])** | * **render(string $view=null, array $variables=[])** | ||
| 行 119: | 行 121: | ||
| <img src=" | <img src=" | ||
| </ | </ | ||
| - | <div class=" | + | <div class=" |
| @endsection | @endsection | ||
| </ | </ | ||
| - | * '' | + | * '' |
| - | * ボイラープレート'' | + | * ボイラープレート'' |
| \\ | \\ | ||