Daniel - this is 101 CakePHP - no, PHP - stuff.

Your controller function will call a model function to do the find. Put the 
code inside that model function. Or - if you want to call this find directly 
from a controller (the revised version I just sent you) - put it in a 
controller function (view?).

Jeremy Burns
Class Outfit

http://www.classoutfit.com

On 4 Nov 2011, at 17:16, Daniel wrote:

> On Nov 4, 5:10 pm, Jeremy Burns | Class Outfit
> <[email protected]> wrote:
>> Can you paste all your model code from the top until the end of this code. 
>> Looks like you're pasting outside of a function.
>> 
> 
> Your're right, oops, what function should it be in?
> 
> -- 
> Our newest site for the community: CakePHP Video Tutorials 
> http://tv.cakephp.org 
> Check out the new CakePHP Questions site http://ask.cakephp.org and help 
> others with their CakePHP related questions.
> 
> 
> To unsubscribe from this group, send email to
> [email protected] For more options, visit this group at 
> http://groups.google.com/group/cake-php

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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