質問編集履歴

1

初心者マーク付けました。その他内容については不変です。

2017/11/29 05:45

投稿

lashca
lashca

スコア8

test CHANGED
File without changes
test CHANGED
@@ -8,15 +8,19 @@
8
8
 
9
9
  ControllerBaseのinitializeメソッドの中で、以下の通りsetTemplateAfterでテンプレートを設定。
10
10
 
11
- > $this->view->setTemplateAfter('common');
11
+ ```PHP
12
12
 
13
+ $this->view->setTemplateAfter('common');
13
14
 
15
+ ```
14
16
 
15
17
  継承したIndexControllerではテンプレートは利用不要のため、以下を実行するがエラーが発生。
16
18
 
17
- > $this->view->setTemplateAfter('');
19
+ ```PHP
18
20
 
21
+ $this->view->setTemplateAfter('');
19
22
 
23
+ ```
20
24
 
21
25
  ※テンプレートは別のコントローラ共通で利用するため、ControllerBaseへの変更は可能な限り行いたくなく思ってます。
22
26