このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン 最新のリビジョン 両方とも次のリビジョン | ||
apricot:app:home [2020/05/09 09:57] y2sunlight [ホームコントローラ] |
apricot:app:home [2020/05/21 10:41] y2sunlight [Apricot ホーム画面] |
||
---|---|---|---|
行 1: | 行 1: | ||
- | > 編集中 | ||
- | |||
- | ----- | ||
- | |||
====== Apricot ホーム画面 ====== | ====== Apricot ホーム画面 ====== | ||
--- // | --- // | ||
行 18: | 行 14: | ||
* [[apricot: | * [[apricot: | ||
* [[apricot: | * [[apricot: | ||
- | * [[apricot: | + | * [[apricot: |
* [[apricot: | * [[apricot: | ||
* [[apricot: | * [[apricot: | ||
- | * [[apricot: | + | * [[apricot: |
- | \\ | ||
- | アプリのホーム画面を作ります。画面の作り方の基本は[[apricot: | + | アプリのホーム画面を作ります。\\ |
+ | 画面の作り方の基本は[[apricot: | ||
---- | ---- | ||
行 85: | 行 81: | ||
* @return \Core\Foundation\Response | * @return \Core\Foundation\Response | ||
*/ | */ | ||
- | function index() | + | |
{ | { | ||
- | $message = 'Welcomt to '.env(' | + | $message = __('messages.home.msg_hello', |
return render(' | return render(' | ||
} | } | ||
行 93: | 行 89: | ||
</ | </ | ||
+ | * ''< | ||
+ | * '' | ||
* ボイラープレートのrender()関数を呼び出してレスポンスをレンダリングしています | * ボイラープレートのrender()関数を呼び出してレスポンスをレンダリングしています | ||
* **render(string $view=null, array $variables=[])** | * **render(string $view=null, array $variables=[])** | ||
行 105: | 行 103: | ||
{{fa> | {{fa> | ||
- | <code php stub.blade.php> | + | <code php home.blade.php> |
{{-- 親レイアウト --}} | {{-- 親レイアウト --}} | ||
@extends(' | @extends(' | ||
行 123: | 行 121: | ||
<img src=" | <img src=" | ||
</ | </ | ||
- | <div class=" | + | <div class=" |
@endsection | @endsection | ||
</ | </ | ||
- | * '' | + | * '' |
- | * ボイラープレート'' | + | * ボイラープレート'' |
\\ | \\ | ||
行 155: | 行 153: | ||
' | ' | ||
' | ' | ||
- | 'msg_change_password' | + | 'msg_hello' |
], | ], | ||
]; | ]; | ||
行 171: | 行 169: | ||
次の画面が表示されます | 次の画面が表示されます | ||
- | [{{apricot: | + | [{{apricot: |
■ [menu1], | ■ [menu1], | ||
■ [About Me]を押すと [[http:// | ■ [About Me]を押すと [[http:// | ||
+ | \\ | ||