回答編集履歴
1
追記
test
CHANGED
@@ -25,3 +25,35 @@
|
|
25
25
|
}
|
26
26
|
|
27
27
|
```
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
追記
|
32
|
+
|
33
|
+
---
|
34
|
+
|
35
|
+
ヘルパーのカスタマイズはこのような感じです。
|
36
|
+
|
37
|
+
```PHP
|
38
|
+
|
39
|
+
<?php
|
40
|
+
|
41
|
+
$this->Form->templates([
|
42
|
+
|
43
|
+
'inputContainer' => '<div class="col-sm-9">{{content}}</div><p class="help-block" style="font-size:10px;">※数字7ケタ、ハイフンなし</p>',
|
44
|
+
|
45
|
+
]);
|
46
|
+
|
47
|
+
?>
|
48
|
+
|
49
|
+
<div class="form-control">
|
50
|
+
|
51
|
+
<?php echo $this->Form->label('郵便番号', '郵便番号<span class="label label-danger">必須</span>', ['class' => 'col-sm-3 control-label', 'escape'=>false]); ?>
|
52
|
+
|
53
|
+
<?php echo $this->Form->input('address',['label' => false, 'class' => 'form-control']) ?>
|
54
|
+
|
55
|
+
</div>
|
56
|
+
|
57
|
+
?>
|
58
|
+
|
59
|
+
```
|