Re: Setting Additional Save Parameters

2007-01-05 Thread Cory


Do I use Model::set?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Setting Additional Save Parameters

2007-01-05 Thread Cory


I figured it out! Forgive me for the stupid question. If anyone's
interested

$this-data['Model']['variable'] = var;


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Setting Additional Save Parameters

2007-01-05 Thread Samuel DeVore


I use something like this

$this-data['ModelName']['fieldToBeSet'] = 'the value for the field';
if ($this-ModelName-save($this-data) {
 // yea saved
}
else {
// bummer did not
}

HTH
  sdevore

On 1/5/07, Cory [EMAIL PROTECTED] wrote:


Do I use Model::set?







--
==
S. DeVore
(the old fart) the advice is free, the lack of crankiness will cost you

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---