Friday, September 26, 2008

using /controller/create in /anothercontroller/form

Hi all. The issue I'm having may be with routers, or it could be with
my lack of knowledge.

I'm using 1.2

I have two controllers: Vips and Exhibitors
Exhibitors has action admin(), Vips has crud actions.

Using elements and passing arguments to the function, visiting root/
exhibitors/admin/vips/create shows the vip create form. Problem is
that after form submission, or on error detection, the user is
redirected to root/vips/create. Is there a way for me to have it go
back to exhibitors/admin/vips/create?

When i use Router::connect('/exhibitors/admin/vip/create',
array('controller' => 'vips', 'action' => 'create')); that is fine,
but it still redirects to root/vips/create on submission or error
detection.

Thanks for any insight!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: