Glad I can help :)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@go
Thank you for all your help!
Miles yes you are right about, I should not call the save twice.
CakePHP SQL query...
407 Query UPDATE `orderlists` SET `status` =
'New' WHERE `orderlists`.`id` = 123
It is now working!
--
Louie Miranda (lmira...@gmail.com)
http://www.loui
-...@googlegroups.com] On Behalf Of
Louie Miranda
Sent: Tuesday, January 13, 2009 2:05 PM
To: CakePHP
Subject: Not saving, how to debug more?
Hello CakePHP!
I have a little problem on my code. I have this function that upon trigger will
activate and $id and change the status to "New". However,
Is this method within the Model or Controller.
If its in the model, $this->Card should be $this->.
You also cannot call save twice, try this:
> function activate($id = null)
> {
> $this->checkSession();
> if (!$id) {
> $this->Session->setFlash('Invalid Cancel Id request.');
>
Hello CakePHP!
I have a little problem on my code. I have this function that upon trigger
will activate and $id and change the status to "New". However, when doing
this - the application is always doing the "else" part "The order could not
be activated".
I am monitoring the SQL logs and no query