このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
|
apricot:app:home [2020/05/09 16:47] y2sunlight [Apricot ホーム画面] |
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: | ||
| ---- | ---- | ||
| 行 72: | 行 73: | ||
| /** | /** | ||
| - | | + | |
| */ | */ | ||
| class HomeController extends Controller | class HomeController extends Controller | ||
| 行 80: | 行 81: | ||
| * @return \Core\Foundation\Response | * @return \Core\Foundation\Response | ||
| */ | */ | ||
| - | function index() | + | |
| { | { | ||
| - | $message = 'Welcomt to '.env(' | + | $message = __('messages.home.msg_hello', |
| return render(' | return render(' | ||
| } | } | ||
| 行 88: | 行 89: | ||
| </ | </ | ||
| + | * ''< | ||
| + | * '' | ||
| * ボイラープレートのrender()関数を呼び出してレスポンスをレンダリングしています | * ボイラープレートのrender()関数を呼び出してレスポンスをレンダリングしています | ||
| * **render(string $view=null, array $variables=[])** | * **render(string $view=null, array $variables=[])** | ||
| 行 118: | 行 121: | ||
| <img src=" | <img src=" | ||
| </ | </ | ||
| - | <div class=" | + | <div class=" |
| @endsection | @endsection | ||
| </ | </ | ||
| - | * '' | + | * '' |
| - | * ボイラープレート'' | + | * ボイラープレート'' |
| \\ | \\ | ||
| 行 150: | 行 153: | ||
| ' | ' | ||
| ' | ' | ||
| - | 'msg_change_password' | + | 'msg_hello' |
| ], | ], | ||
| ]; | ]; | ||