http://book.cakephp.org/view/1367/submit

On Thu, Dec 8, 2011 at 4:26 PM, Daniel <danwgr...@gmail.com> wrote:

> I want to add a "read" button to a view.ctp and set a boolean field
> called "email_read" to true when the user clicks on it.  My question
> is how do I set up the button in the view.ctp file and how do I code
> the save in the controller?  This is what I have so far at the bottom
> of view.ctp:
>
> <div class="emails form">
> <?php echo $this->Form->create('Email');?>
> <?php echo $this->Form->end(__('Read', true));?>
> </div>
>
> The problem with this is that it goes to the view action and has no
> id, so it just causes an error "Invalid email".
>
> Thanks.
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to