如何覆盖cakephp的默认标签,将其替换为我想要的标签。 cakePHP中的 VIEW 代码是这样的:
echo $this->Form->create('Add');
echo "<h2>Email</h2>"; //Email
echo $this->Form->input('email'); //email
echo $this->Form->submit('submit');
echo $this->Form->end();
答案 0 :(得分:2)
echo $this->Form->input('email', array('label' => 'Your Label'));