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

将Zend_Form_Element_Text转换为Zend_Form_Element_Hidden

In my controller script I have the following:

$customer_el = $this->view->form->getElement('customer_id');
Zend_Debug::dump($customer_el);

The output of it is

object(Zend_Form_Element_Text)#13 (26) {
  ["helper"] => string(8) "formText"
  ["_allowEmpty":protected] => bool(true)
  ["_autoInsertNotEmptyValidator":protected] => bool(true)
  ["_belongsTo":pro
... and so on.....

Is it possible to convert the $customer_el variable to Zend_Form_Element_Hidden ?? If so, how?

近期文章

  • 使用自定义分类法自定义SQL查询(Wordpress)
  • 是否在循环中的屏幕上打印图像文件(对应于线程ID)?
  • 图像像基于表值的进度条?
  • 捕获输入值onsubmit
  • Cakephp Auth登录REST响应
  • 在一个数组中有多个值 - For Loop?
  • Laravel 4 PHP:路由订单问题
  • PHP Session在购买过程中失去了一半
  • Reskit patchObject - 在php服务器端提取对象
  • 在Ubuntu和并行plesk中使用cron作业备份数据库
  • 在SQL中输出之前排除标题和内容为NULL
  • 更多查询中的MySQL事务
  • 如果while循环中的语句没有更新数据库中的所有用户
  • 在数据库中计算时间
  • Codeigniter分页问题 - 未定义属性:$ pagination
  • 哪些PHP编辑器支持Go To Implementation功能?
  • 我应该为Yii框架安装哪个驱动程序才能在WAMP中使用MongoDB? [关闭]
  • 使用https协议失败的ajax请求的可能原因但http有效
  • PHP curl看到原始帖子内容
  • WordPress AJAX PHP变量

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

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

友情链接:代码精华