I'm not familiar with the tutorial, however, somewhere in your
user_controller.php file should be the action for register. Give the
success of the save() function there, you should be able to redirect
or even post up a message like this:
function register()
{
//If the data stream from the form is not empty...
if (!empty($this->data))
{
//And if the data has been saved...
if ($this->User->save($this->data))
{
//Flash a message that the user has been
registered.
$this->flash('You have been registered.','/
posts');
}
}
}
Hope that helps!
On May 31, 11:08 am, rtanz <[EMAIL PROTECTED]> wrote:
> hi i am a new cakephp user trying to follow the ibm tutorial but i
> have a problem when i try to register a new user at
>
> http://localhost/cake/ibm/users/register
>
> when i press register i am redirected tohttp://localhost/users/register
> and this returns a 404 not found error. it seems to me that that is
> not the place where the script should be redirecting too, how can i
> fix this? my register view has the following line <form action="/users/
> register" method="post">
>
> thanks
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---