> Ok, your solution works fine, but if you see at "automagic form"
> section inhttp://tempdocs.cakephp.org/you'll find this
>
> $options['empty']
> If set to true, forces the input to remain empty. This is useful for
> password inputs that shouldn't usually be rendered with a user's
> password as the default value.

You're right - hadn't noticed that! I apologise for the condescending
tone of my message, I feel like quite a tit now.

I wonder if the docs are ahead of the code or vice-versa?


On Jan 30, 11:07 am, Reny <[EMAIL PROTECTED]> wrote:
> On 30 Gen, 11:58, AD7six <[EMAIL PROTECTED]> wrote:
>
> > > This is my input field:
> > > <?php echo 
> > > $form->input('password',array('label'=>false,'div'=>false,'error'=>false,
>
> > > 'empty' => true)); ?>
>
> > empty is only relavent for select boxes - adding that to a password
> > will do nothing (except maybe add empty="true" as an attribute of the
> > password html tag).
> > What you want to do is unset $this->data['User']['password'] in the
> > controller before re-rendering the view.
>
> Thanks for replay.
>
> Ok, your solution works fine, but if you see at "automagic form"
> section inhttp://tempdocs.cakephp.org/you'll find this
>
> $options['empty']
> If set to true, forces the input to remain empty. This is useful for
> password inputs that shouldn't usually be rendered with a user's
> password as the default value.
>
> Your solution works fine, ok, but or its a (good yes) workaround or
> manual is wrong.
>
> Thanks :).
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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