1

I have some columns with long and unfriendly names, which I want to edit app-wide in dynamic forms.

Is there a way to add "alias" or "title" to a column, so that echo $this->Form->input('icantshowthis'); will echo something else than "icantshowthis" as the label content?

I am aware to virtual fields and don't want to use them, since it seems like wrong practice. (this is a view issue)

pretty please??

4

1 回答 1

1

您正在为 CakePHP 寻找表单中的 Secury,这通过在输入中具有名称属性来混淆真实的字段名称,并可能将其抽象到接收数据的控制器。

缺点是当您需要插入不属于模型的文件时。

希望对您有所帮助!

于 2015-11-24T13:57:10.170 回答