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! :)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.