質問編集履歴

8

変更なし

2015/07/01 05:49

投稿

KinoshitaYusaku
KinoshitaYusaku

スコア175

test CHANGED
File without changes
test CHANGED
File without changes

7

コード部分を微修正しました

2015/07/01 05:49

投稿

KinoshitaYusaku
KinoshitaYusaku

スコア175

test CHANGED
File without changes
test CHANGED
@@ -44,4 +44,4 @@
44
44
 
45
45
 
46
46
 
47
- よろしくお願いしますm(_ _)m
47
+ よろしくお願いします

6

ソースコード部分の化けを修正しました

2015/03/04 07:35

投稿

KinoshitaYusaku
KinoshitaYusaku

スコア175

test CHANGED
File without changes
test CHANGED
@@ -44,4 +44,4 @@
44
44
 
45
45
 
46
46
 
47
- よろしくお願いします
47
+ よろしくお願いしますm(_ _)m

5

ソースコード部分を微修正しました

2015/03/04 07:26

投稿

KinoshitaYusaku
KinoshitaYusaku

スコア175

test CHANGED
File without changes
test CHANGED
File without changes

4

ソース部分変更

2015/03/04 07:25

投稿

KinoshitaYusaku
KinoshitaYusaku

スコア175

test CHANGED
File without changes
test CHANGED
@@ -18,7 +18,7 @@
18
18
 
19
19
  <dd>
20
20
 
21
- <?php echo $this -> Html->image('/contents/'\\\."{\\\$user\\\['User'\\\]\\\['id'\\\]}", array\\\('alt' => 'ProfileImage'\\\)\\\); \\\?>
21
+ <?php echo $this -> Html->image('/contents/'."{$user['User']['id']}", array('alt' => 'ProfileImage')); ?>
22
22
 
23
23
  &nbsp;
24
24
 
@@ -32,7 +32,7 @@
32
32
 
33
33
 
34
34
 
35
- !\\\[イメージ説明\\\]\\\[WIDTH:348\\\]\\\(9d32646f52829fd1a48c3702665e0b6f\\\.png\\\)
35
+ ![イメージ説明][WIDTH:348](9d32646f52829fd1a48c3702665e0b6f.png)
36
36
 
37
37
 
38
38
 

3

コード部分を微修正します

2015/03/04 06:36

投稿

KinoshitaYusaku
KinoshitaYusaku

スコア175

test CHANGED
File without changes
test CHANGED
@@ -18,7 +18,7 @@
18
18
 
19
19
  <dd>
20
20
 
21
- <\?php echo \$this -> Html->image\('/contents/'\."{\$user\['User'\]\['id'\]}", array\('alt' => 'ProfileImage'\)\); \?>
21
+ <?php echo $this -> Html->image('/contents/'\\\."{\\\$user\\\['User'\\\]\\\['id'\\\]}", array\\\('alt' => 'ProfileImage'\\\)\\\); \\\?>
22
22
 
23
23
  &nbsp;
24
24
 
@@ -32,7 +32,7 @@
32
32
 
33
33
 
34
34
 
35
- !\[イメージ説明\]\[WIDTH:348\]\(9d32646f52829fd1a48c3702665e0b6f\.png\)
35
+ !\\\[イメージ説明\\\]\\\[WIDTH:348\\\]\\\(9d32646f52829fd1a48c3702665e0b6f\\\.png\\\)
36
36
 
37
37
 
38
38
 

2

コード部分を少し修正します

2015/03/04 06:22

投稿

KinoshitaYusaku
KinoshitaYusaku

スコア175

test CHANGED
File without changes
test CHANGED
@@ -1,24 +1,47 @@
1
1
  プログラム初心者です。
2
2
 
3
+
4
+
3
5
  MySQLに保存している画像を、
6
+
4
7
  HTMLヘルパーで表示するにはどのように書けばいいでしょうか?
5
8
 
9
+
10
+
6
11
  ちなみに今は、viewのとこに、
12
+
7
13
  下記のようにコードを記述していて、
14
+
8
15
  ```lang-<ここに言語を入力>
16
+
9
17
  <dt><?php echo __('Image'); ?></dt>
18
+
10
19
  <dd>
20
+
11
- <?php echo $this -> Html->image('/contents/'."{$user['User']['id']}", array('alt' => 'ProfileImage')); ?>
21
+ <\?php echo \$this -> Html->image\('/contents/'\."{\$user\['User'\]\['id'\]}", array\('alt' => 'ProfileImage'\)\); \?>
22
+
12
23
  &nbsp;
24
+
13
25
  </dd>
26
+
14
27
  ```
15
28
 
29
+
30
+
16
31
  ブラウザではこのように表示されます…。
32
+
17
33
 
34
+
18
- ![イメージ説明][WIDTH:348](9d32646f52829fd1a48c3702665e0b6f.png)
35
+ !\[イメージ説明\]\[WIDTH:348\]\(9d32646f52829fd1a48c3702665e0b6f\.png\)
36
+
37
+
19
38
 
20
39
  どのように書けば画像表示されるのでしょうか…??
21
40
 
41
+
42
+
22
43
  どなたか教えて頂けますと幸いです。。。
23
44
 
45
+
46
+
24
47
  よろしくお願いします。

1

タイトルを修正しました!

2015/03/04 06:21

投稿

KinoshitaYusaku
KinoshitaYusaku

スコア175

test CHANGED
@@ -1 +1 @@
1
- CakePHPde,MySQLに保存した画像をHTMLヘルパーを使って表示する方法は??
1
+ CakePHP,MySQLに保存した画像をHTMLヘルパーを使って表示する方法は??
test CHANGED
@@ -1,47 +1,24 @@
1
1
  プログラム初心者です。
2
2
 
3
-
4
-
5
3
  MySQLに保存している画像を、
6
-
7
4
  HTMLヘルパーで表示するにはどのように書けばいいでしょうか?
8
5
 
9
-
10
-
11
6
  ちなみに今は、viewのとこに、
12
-
13
7
  下記のようにコードを記述していて、
14
-
15
8
  ```lang-<ここに言語を入力>
16
-
17
9
  <dt><?php echo __('Image'); ?></dt>
18
-
19
10
  <dd>
20
-
21
11
  <?php echo $this -> Html->image('/contents/'."{$user['User']['id']}", array('alt' => 'ProfileImage')); ?>
22
-
23
12
  &nbsp;
24
-
25
13
  </dd>
26
-
27
14
  ```
28
15
 
29
-
30
-
31
16
  ブラウザではこのように表示されます…。
32
-
33
17
 
34
-
35
18
  ![イメージ説明][WIDTH:348](9d32646f52829fd1a48c3702665e0b6f.png)
36
-
37
-
38
19
 
39
20
  どのように書けば画像表示されるのでしょうか…??
40
21
 
41
-
42
-
43
22
  どなたか教えて頂けますと幸いです。。。
44
23
 
45
-
46
-
47
24
  よろしくお願いします。