Well, francky had it right. I just riffed on that. :)
I think it should be as simple as added your Survey model the $uses
property in the controller declaration.
var $uses = array('Questions','Survey');
Then use it in the controller as necessary:
$this->Survey->doSomething();
Alternately, you could load the Survey model only in the methods you
need it, and instantiate it yourself.
App::import('Model', 'Survey');
$survey = new Survey();
$survey->doSomething();
On Jan 8, 1:11 pm, chrisdNH <[EMAIL PROTECTED]> wrote:
> Robby, you are exactly right. :-) I needed to step back and look at
> how I designed the controllers. I've combined them - I now have the
> save() functionality in the Questions controller. But now I'm trying
> to save to the Surveys table from the Questions controller. Can I use
> var $useTable = 'surveys' in the controller? Thanks again, I
> appreciate the guidance.
>
> -Chris
>
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---