Hi Sergei,

If you redirect, effectively that means you finished all your
controller code and a new instance of dispacher, controller, models
etc. are created for the new page request - these new instances don“t
know anything about what happened in the past (unless you code that
in).

One relatively Easy option:
Write the code for your addlink like any other controller (e.g. create
links_controller with a function add)
Write a view for this action and RequestAction where it needs to appear
Submit the form by ajax.

rdBloggery functions in this mode for submitting comments - perhaps
take a look at that  to get ideas.

HTH,

AD7six
Perhaps it would be a better idea to use


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

Reply via email to