我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

在cakephp形式中使用不同的字段名称

is it possible to change the name of a input field in cakephp? I tried with virtual fields, but it does shows the original column name from database.

can someone help me with this?

its pretty easy.. use it like this:

<?php echo $this->Form->input('theField', array( 'label'=>'Change the Text')); ?>

instead of this:

<?php echo $this->Form->input('theField'); ?>

i hope this helps! :)

近期文章

  • php加载数据本地infile路径错误
  • 如何停止JQuery.load的内部脚本
  • JSON.parse:使用php转义错误的字符
  • PHP表单URL变量
  • 在pdo中的非对象上调用成员函数query()
  • 使用Javascript / PHP将文本渲染到2D图像上吗?
  • 我在哪里可以找到yii中为操作菜单定义的div。
  • 你如何使IIS 7解析js文件也作为PHP文件?
  • 正则表达式匹配hashtag,空格然后是字符
  • 实现PHP-Markdown的问题
  • 把html放到回声中
  • 来自Google的链接尝试加载不在我网站上的图片......非常奇怪
  • PHP中的Google Admin SDK
  • ajax请求不返回值
  • 如何在用户点击显示名称或昵称时将用户重定向到自定义页面?
  • 分页后mysqli出错
  • 使用.htaccess无法正常删除尾部斜杠
  • PHP无法获得正确的数组格式
  • 使用SUM计算多列中的值
  • 删除数组中的维度

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华