On Jul 20, 1:48 pm, "Marcin Domanski" <[EMAIL PROTECTED]> wrote:
> you're crazy ;)

;)

> Do you have
> $form->input('id')
> in the form ? i'm pretty sure all baked views have it.

Yep. I'm using security so I had to make all the form items use the
form helper.

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

Er, frreehand typo :P

Your example is what I meant and even with that, it gives me /login,
not /users/login. If I have /login, then it ends up being /users/
login. It just seems odd that /controller/add is the default action
when that is one of a theoretically unlimited number of other actions
in the controller; in my users controller, I have login, password,
edit, reset, and activate. All of these currently require me to add
extra code to get the url minus the controller (whether it's
str_replace() or a function in my model). Point being, add is one of
many possible, and likely, actions, so why is it the default and not
the current page? I'm use the 1.2 RC2, in case anyone was wondering.

--~--~---------~--~----~------------~-------~--~----~
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