質問編集履歴

5

配列の書き方変更

2018/04/29 03:08

投稿

kantowebmanager
kantowebmanager

スコア29

test CHANGED
File without changes
test CHANGED
@@ -22,29 +22,13 @@
22
22
 
23
23
  ```
24
24
 
25
- <?php
26
-
27
-
28
-
29
- require_once 'htmltemplate.inc';
30
-
31
-
32
-
33
- $a = [
25
+ $a = array(
34
26
 
35
27
  'test' => 1,
36
28
 
37
29
  'test1' => 2,
38
30
 
39
- ];
31
+ );
40
-
41
-
42
-
43
- htmltemplate::t_include('sample.html', $a); // テンプレート表示
44
-
45
-
46
-
47
- exit();
48
32
 
49
33
 
50
34
 

4

配列の書き方を変更

2018/04/29 03:08

投稿

kantowebmanager
kantowebmanager

スコア29

test CHANGED
File without changes
test CHANGED
@@ -24,27 +24,29 @@
24
24
 
25
25
  <?php
26
26
 
27
+
28
+
27
- require_once("htmltemplate.inc");
29
+ require_once 'htmltemplate.inc';
28
30
 
29
31
 
30
32
 
31
- $a = array
33
+ $a = [
32
-
33
- (
34
34
 
35
35
  'test' => 1,
36
36
 
37
- 'test1'=> 2,
37
+ 'test1' => 2,
38
38
 
39
- )
39
+ ];
40
40
 
41
41
 
42
42
 
43
- htmltemplate::t_include("sample.html", $a); // テンプレート表示
43
+ htmltemplate::t_include('sample.html', $a); // テンプレート表示
44
44
 
45
45
 
46
46
 
47
47
  exit();
48
+
49
+
48
50
 
49
51
  ```
50
52
 

3

大文字を小文字に変更

2018/04/29 03:06

投稿

kantowebmanager
kantowebmanager

スコア29

test CHANGED
File without changes
test CHANGED
@@ -40,7 +40,7 @@
40
40
 
41
41
 
42
42
 
43
- HtmlTemplate::t_include("sample.html", $a); // テンプレート表示
43
+ htmltemplate::t_include("sample.html", $a); // テンプレート表示
44
44
 
45
45
 
46
46
 

2

ソースコード修正

2018/04/29 02:17

投稿

kantowebmanager
kantowebmanager

スコア29

test CHANGED
File without changes
test CHANGED
@@ -24,7 +24,7 @@
24
24
 
25
25
  <?php
26
26
 
27
- require_once(htmltemplate.inc);
27
+ require_once("htmltemplate.inc");
28
28
 
29
29
 
30
30
 
@@ -40,7 +40,7 @@
40
40
 
41
41
 
42
42
 
43
- HtmlTemplate::t_include(sample.html, $a); // テンプレート表示
43
+ HtmlTemplate::t_include("sample.html", $a); // テンプレート表示
44
44
 
45
45
 
46
46
 

1

PHPファイルに「require_once(“htmltemplate.inc”);」を書いてなかったので<?phpのすぐ↓に追加しました。・・が、動きません。。

2018/04/29 01:49

投稿

kantowebmanager
kantowebmanager

スコア29

test CHANGED
File without changes
test CHANGED
@@ -24,7 +24,7 @@
24
24
 
25
25
  <?php
26
26
 
27
-
27
+ require_once(“htmltemplate.inc”);
28
28
 
29
29
 
30
30