Tuesday, March 20, 2012

Re: not Insert records

Thanks for replay,

  I have put comment on exit statement, just ignore exit statement. 

On Tuesday, March 20, 2012 3:26:04 PM UTC+5:30, Mike Karthauser wrote:

probably because you are exiting before calling the save function.

On 20 Mar 2012, at 09:19, nikunj wrote:

//echo $this->Click->cloneReco($id);
exit;
if ($this->Click->save($click)) {
$this->Session->setFlash('New Records is inserted.');
} else {
$this->Session->setFlash('Error-in Insert');
}

....................................
Mike Karthäuser
Director, Brightstorm Ltd.

1, Brewery Court
North Street
Bristol
BS3 1JS

+44(0) 7939252144
....................................





--
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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: