http://us2.php.net/manual/en/function.array-merge.php

Can you make use of the array_merge() function to combine the two arrays of data before storing it with set?

On 6/27/06, StinkyTofu <[EMAIL PROTECTED]> wrote:

Okay, I'm an idiot. Just as I hit the Post button, I realised that I
can use:

$this->Company->set($this->data['Company']);

to save the data properly. Oops!  Sorry for wasting your time.

Now my question is in Step 2 of the wizard, when I click the next
button, I will once again call
$this->Company->set($this->data['Company']), which means that the form
data from step 1 will be overwritten by the form data in step 2.  So,
this brings me to the question of am I using the right approach here?
Or am I a raving lunatic for writing it in this way?  I love CakePHP
and would hate to ruin the pure simplicity of the framework with poorly
written code.  Is there another function I should call to append the
data in step 2 to the Company model?  Or do I need to completely
re-write this function using an entirely different approach?

Appreciate your help!



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

Reply via email to