$this->arrCompany['data']['Company'] =
$this->params['data']['Company'];
$this->arrUser['data']['Users'] = $this->params['data']['User'];
$this->Company->save($this->arrCompany['data']);
$this->User->save($this->arrUser['data']);

Hmm ok so I know this doesn't work for Users only, but the company is
saved.

I get this:

Notice</b>:  Undefined property:  CompaniesController::$User in
<b>C:\Program
Files\xampp\htdocs\eApproval\app\controllers\companies_controller.php</b>
on line <b>31

Line 31 being $this->User->save...

Am I in the right place here?  I know my Users is linked to my company
in my model, is the correct way to do this from the users controller
instead?


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to