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 BurnsClass Outfit
http://www.classoutfit.com
Jeremy Burns
http://www.classoutfit.com
On 4 Nov 2011, at 17:16, Daniel wrote:
On Nov 4, 5:10 pm, Jeremy Burns | Class Outfit
<jeremybu...@classoutfit.com> 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
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
No comments:
Post a Comment