Ajax would have very little differences in your mailing list
registration,
- some in the (view) submission form
- none in model
- none in comtroller (maybe the add of request handler)
- some helpers such as "javascript" and "ajax"

I think this is very close to a user registration, and there are
plenty of resources to do this in cake 12.
Chris has got a simple one on his blog (link in the above answer), you
could look at it. It's not ajax, but should take about 10 minutes to
"ajaxify" it.

hth

On May 15, 1:01 am, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> On Wed, May 14, 2008 at 6:01 PM, koala kid <[EMAIL PROTECTED]> wrote:
>
> > I am new to cake and have just built my first site using it. To spice
> > it up I wanted to add a newsletter sign-up form on the home page that
> > uses Ajax to both submit the email address and provide a response.
> > However the documentation appears to be lacking and I can't find a
> > good example anywhere of how to do this. Could someone provide any
> > pointers on:
>
> > What a controller would look like
> > What components I need to include
> > What a view would like like
> > Can I perform validation on the email
> > What a model may look like.
>
> > Thanks in advance for any help I get.
>
> Was book.cakephp.org no help to you?
>
> --
> Chris Hartjes
> Internet Loudmouth
> Motto for 2008: "Moving from herding elephants to handling snakes..."
> @TheKeyBoard:http://www.littlehart.net/atthekeyboard
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to