Url is missing:

<?php echo $form->create('User', array('url' => array('action' =>
'login')));?>

On Mar 25, 9:52 pm, jonas <[email protected]> wrote:
> When I create a form there goes something wrong when the action
> attribute of the form element is created.
>
> View code:
>
>     <?php echo $form->create('User', array('action' => 'login'));?>
>         <?php echo $form->input('username');?>
>         <?php echo $form->input('password');?>
>         <?php echo $form->submit('Login');?>
>     <?php echo $form->end(); ?>
>
> Outputs:
>
> <form id="UserLoginForm" method="post" action="/~jonas/cake-template/
> index.php/users/users/login"> ...
>
> Clearly this should have been action="/~jonas/cake-template/index.php/
> users/login" !
>
> Why is this happenings ?
--~--~---------~--~----~------------~-------~--~----~
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