I think I ran across an answer to this before, but now I can't find it.
Anyway, I'd like to be able to pass data from a view to a controller.
One reason for this, is so a user can go to a page, click on an edit
link, go to a form to edit, hit submit, and then be redirected back to
the first page. The URL the user is being redirected to in the
controller has to be dynamic.

Example: User clicks Add link on Page 1, goes to form, hits submit, and
is redirected back to Page 1. User clicks Add link on Page 2, goes to
form, hits submit, and is redirected back to Page 2.

I'd also like to use this to pass data to be used in a field. Example:
User clicks Add link on Cats Page, goes to form, and form has the word
cat filled in for the Animal field.

I can figure out how to do all the logic. What I want to know is, how
to pass data from the view, to the controller? Also, once I have that,
how could I pass the same data onto another controller, and to another?
I guess I could just keep populating the view with the data, like the
first view has.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to