On Apr 16, 6:18 am, mivogt-LU <[email protected]> wrote:
> I am passing some data from controller to my view
> i.e. a timestamp as process-id-number (better readable using php
> wordwrap function..)
>
> I want the number to be displayed in a form-field but also would like
> to set this field to be disabled for changing.
>
> $options does not look to have a disanle function.
> Is there a way to do so with cake?

You have several options. The simplest would be to just echo the
value. Does it really need to be a form input? But, if you must pass
the value back to your controller:

$form->hidden('the_name', array('value' => $this->data['...']))
echo $this->data['...'];

or:

<input type="text" name="the_name" value="<?= $this->data['whatever']
['whatever'] ?>" disabled="disabled" />


Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to