1

我想向 CRUD 表单添加提示,但收到错误消息。

 $temp_crud->getElement('pin')->setFieldHint('the hint');
4

1 回答 1

1

只需将其添加到您的模型中:

$this->addField('my_field')->hint('this hint will show on the form');

或者你可以做

if($temp_crud->form) {
    $temp_crud->form->getElement('pin')->setFieldHint('the hint');
}
于 2013-09-12T08:44:22.723 回答