2014-10-12 5 views

답변

5

이를 사용합니다. 당신이 레이블을 제거하려는 경우

$this->Form->input('code', array('label' => 'LabelName')); 
1

$this->Form->input('code', array('label' => false));

또는, 당신은 당신의 선택의 뭔가 다른 레이블을 변경하고자한다면 : 당신이 레이블을 변경하려는 경우

$this->Form->input('code', array('label' => 'something else'));

2

은 사용해야합니다

<?php echo $this->Form->input('code', array('label' => false)); ?> 

를 입력의 레이블의 전체 제어를 위해 가장 좋은 방법은 다음과 같이 사용하는 것입니다

<?php echo $this->Form->input('code',array('label'=>array('text'=>'This is my label','class'=>' this is the class of my label'))); ?> 
관련 문제