::solved::solved::solved

ok thank you cricket, so I understand there is only the noncake way to
do it.
using the usual html form syntax or, as you suggested - using the echo
instead of a form field.
might be I need to look to choos the right css class to keep the look/
fontsize in that case.

::solved::solved::solved

On 16 Apr., 13:03, cricket <[email protected]> wrote:
> 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 sitehttp://cakeqs.organd 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 
> athttp://groups.google.com/group/cake-php?hl=en

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