I'm not very clear on your problem, but if you want to create new item
for "Model A" from "Model B", you can use this principe:
-----
class Commitment extends AppModel
{
var $name = 'Commitment'; //for php4
}
class FeedbackController extends AppController
{
var $name = 'Feedback'; //for php4
var $uses = array('Commitment');
function index () {
$this->data['Commitment']['actionplan_id'] = 300;
$this->data['Commitment']['action_area'] = 1;
$this->data['Commitment']['order'] = 0;
$this->save();
}
}
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---