回答編集履歴

2

質問者さんのコードに合わせました

2016/10/06 08:35

投稿

ShoheiTai
ShoheiTai

スコア897

test CHANGED
@@ -6,6 +6,6 @@
6
6
 
7
7
  ```php
8
8
 
9
- echo $this->Html->link('ボタン名', '#example_box', array('class' => 'btn btn-success btn-small example_box_btn'));
9
+ echo $this->Html->link(__('<span class="glyphicon glyphicon-folder-open"></span> ボタン名'), '#example_box', array('class' => 'btn btn-success btn-small example_box_btn', 'escape' => false));
10
10
 
11
11
  ```

1

class指定を修正

2016/10/06 08:35

投稿

ShoheiTai
ShoheiTai

スコア897

test CHANGED
@@ -6,6 +6,6 @@
6
6
 
7
7
  ```php
8
8
 
9
- echo $this->Html->link('ボタン名', '#example_box', 'btn btn-success btn-small example_box_btn');
9
+ echo $this->Html->link('ボタン名', '#example_box', array('class' => 'btn btn-success btn-small example_box_btn'));
10
10
 
11
11
  ```