Hello,
so if I write this in view
<?php
echo $form->create('User', array('url' => array('controller' =>
'users', 'action' =>'login')));
echo $form->input('User.username', array('label' => 'E-mail:', 'style'
=> 'width: 138px;'));
echo $form->input('User.password', array('label' => 'Geslo:', 'style'
=> 'width: 138px;'));
echo "<br><center>" . $form->end('Prijava') . "</center>";
?>
I get the input field ok name="data[User][username]"
<input id="UserUsername" type="text" value="" maxlength="255"
style="width: 138px;" name="data[User][username]"/>
But if I would like to use form type get
<?php
echo $form->create('User', array('type' => 'get', 'url' => array
('controller' => 'users', 'action' =>'login')));
echo $form->input('User.username', array('label' => 'E-mail:', 'style'
=> 'width: 138px;'));
echo $form->input('User.password', array('label' => 'Geslo:', 'style'
=> 'width: 138px;'));
echo "<br><center>" . $form->end('Prijava') . "</center>";
?>
then I get a wrong name of inpuf field name="username"
<input id="UserUsername" type="text" value="" maxlength="255"
style="width: 138px;" name="username"/>
So, this is a bug or I'm doing something wrong?
Regards Andraž
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---