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
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php