Why not just create a route to point these links to the UsersController?
Router::connect(
'/signup/:user_type',
array('controller' => 'users', 'action' => 'signup'),
array(
'pass' => array('user_type'),
'user_type' => '[-_A-Za-z]+'
)
);
On Mon, May 25, 2009 at 3:44 PM, Bob Mattax <[email protected]> wrote:
>
> I'm not sure of the best path here.
>
> Here's what I'm doing right now:
> I have a user table, and I have a couple different types of users. I
> figured I would create a signup controller, and have it *use* the User
> model. When I create my form in the signup/typeA view, I still make
> it on the user Model, but then that posts to the user controller,
> which I'm ok with, but I'd like to be redirected back to the Signup
> controller if there's a problem I've got that working too, but my
> problem is that if there are validation errors, I can't get it to show
> up 'magically' when I redirect back to the referring Signup page. Is
> there just some "set" that I need to do? I'm sure its been done, and
> will be simple, I just can't figure out what it is.
>
> Any help would be appreciated.
>
> Thanks,
> Bob
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---