I watch this group quite carefully, but this really surprised me. I
have been developing on 1.2.0.5427alpha and everything works well for
me. Today I tried 1.2.0.5750 and everything broke. Here is just one
example.
Under 5427 this code.
<?php echo $form->create('/users',array('action'=>'login'))."\n"; ?>
<?php echo $form->input('User.username', array('size' =>
20))."\n"; ?>
<?php echo $form->input('User.password', array('size' =>
20))."\n"; ?>
<?php echo $form->submit('Login'); ?>
<?php echo $form->end(); ?>
generates this.
<form id="usersLoginForm" method="post" action="/qfx/users/login/">
<div class="input"><label for="UserUsername">Username</
label><input name="data[User][username]" type="text" size="20"
value="" id="UserUsername" /></div>
<div class="input"><label for="UserPassword">Password</
label><input type="password" name="data[User][password]" size="20"
value="" id="UserPassword" /></div>
<div class="submit"><input type="submit" value="Login" /></div></
form>
and I was really quite happy with it. It posted nice clean data back
to the controller.
under 5720 the same code generates this.
<form id="usersLoginForm" method="post" action="/rfx/users/login">
<div class="input"><label for="UserUsername">Username</
label><input name="User" username/></div>
<div class="input"><label for="UserPassword">Password</
label><input type="password" name="User" password/></div>
<div class="submit"><input type="submit" value="Login" /></div></
form>
which leaves me a bit perplexed. The only value in $this-
>params['form'] is ['user'] and it contains the password value.
What did I miss, or more to the point how do I change my forms to take
advantage of the new rules.
(What are the new rules)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---