In the model you use this:
[code]
$result = $this->query('your long and vinding query statemtent');
[/code]
Enjoy,
John
On Jun 15, 7:17 pm, Matt Y <[email protected]> wrote:
> So I have searched for this, but the cookbook does not help me with my
> problem.
>
> I have been trying to write functions in my models that use the
> query() function that updates some HABTM tables
>
> i have copied many pieces of code to try and make this happen but have
> had no luck. I have tried
>
> $results = $this->query();
> $results = $this->Model->query();
> $this->query();
> $this->Model->query();
>
> What am I doing wrong, is it just not possible to do this in model
> code, must I put all calls to the query function in the controller?
>
> Thank you for your help,
>
> Matt
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" 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