Hello.
I have a model "User" which I use with the Auth-component for Login to
the admin-area.
I also hava an UserController with a admin_add-method for adding new
users.
My problem: In the form of the add-view the field username is always
preset with the username of the current user.
setting the option "value" => "" is no solution as the field should be
preset with the username if the form did not validate and is displayed
a second time.
Excerpt for my form-code:
echo $form->create("User");
echo $form->input("username", array("label" => "Benutzername"));
echo $form->end("Save new user");
I think the problem is that the current logged-in user is stored in
the session. But how can I distinguish between this setting and the
user-input?
Thanks in advance.
Tomka.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---