Re: How to add a "read" button to a view.ctp?

2011-12-15 Thread Paul Vaughan
(I don't know how to do it, but) Couldn't you achieve this with toggleable behaviour? Paul. On 15 December 2011 16:13, Yves S. Garret wrote: > I'm curious. Why did you go that route? What was your design decision? > Advantages/disadvantages? > > I'm learning about Cake every day and like to kn

Re: How to add a "read" button to a view.ctp?

2011-12-15 Thread Yves S. Garret
I'm curious. Why did you go that route? What was your design decision? Advantages/disadvantages? I'm learning about Cake every day and like to know more about why people do the things that they do. On Thu, Dec 8, 2011 at 6:28 PM, Daniel wrote: > I used an action: > > Html->link(__('Mark as re

Re: How to add a "read" button to a view.ctp?

2011-12-09 Thread euromark
@daniel using cake2 you should distance yourself from GET requests changing the DB it always was a bad idea to do so in the first place use Form->postLink() instead On 9 Dez., 00:28, Daniel wrote: > I used an action: > > Html->link(__('Mark as read', true), > array('action' => 'read', $email['Em

Re: How to add a "read" button to a view.ctp?

2011-12-08 Thread Daniel
I used an action: Html->link(__('Mark as read', true), array('action' => 'read', $email['Email']['id'])); ?> -- 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

Re: How to add a "read" button to a view.ctp?

2011-12-08 Thread Yves S. Garret
Here: http://book.cakephp.org/view/1431/submit On Thu, Dec 8, 2011 at 4:55 PM, Daniel wrote: > On Dec 8, 9:31 pm, "Yves S. Garret" > wrote: > > http://book.cakephp.org/view/1367/submit > > > > Just great, this says it is deprecated: > http://book.cakephp.org/view/1367/submit#!/view/1358/AJAX >

Re: How to add a "read" button to a view.ctp?

2011-12-08 Thread Yves S. Garret
lol, I completely overlooked the AJAX, was thinking of something I did. This is a portion of my code from a recent project. echo $this->Form->create("AdmitLookupProviders", array('action' => 'view_admit_lookup')); echo ""; echo "Last Name"; echo $this->Form->input("last_name"

Re: How to add a "read" button to a view.ctp?

2011-12-08 Thread Daniel
On Dec 8, 9:31 pm, "Yves S. Garret" wrote: > http://book.cakephp.org/view/1367/submit > Just great, this says it is deprecated: http://book.cakephp.org/view/1367/submit#!/view/1358/AJAX -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakeP

Re: How to add a "read" button to a view.ctp?

2011-12-08 Thread Yves S. Garret
http://book.cakephp.org/view/1367/submit On Thu, Dec 8, 2011 at 4:26 PM, Daniel 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 co

How to add a "read" button to a view.ctp?

2011-12-08 Thread Daniel
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: Form->cr