Hi all bakers

The problem is : I have 2 columns site layout where a mailing list 
subscription block can be seen on all the pages. So I put it into en 
element.

Basically, this is just a form with text input and subscribe button, so 
I have built a mailinglist model and a mailinglist controller with an 
add function, called on subscribing the form.

Of course, model does a validation of the mail entered. If everything 
goes right, I just do a redirect to the main page. BUT if a validation 
problems occurs, controller calls by default a "add" view. I do not want 
this ! I just want to stay on the same page (like home, products or 
contact) where the user typed his email in the mailing list subscriber 
form and I want to display the validation error message inside the 
mailing list element.

Sounds like I have to re-render the current view (I mean "HOME", 
"PRODUCTS" or "CONTACT" view) with an updated mailing list element block 
telling "hey buddy, your email is wrong !"

I struggle with that since 2 days. Any idea ?

Regards to all !

--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to