i got it to work using Linkable. as well as you suggested by using
bindModel which is slightly more readble than joins.
though i think linkable is really darn short and it looks good.
I am sorry, i apologise that i misunderstood.
I thought both the linkable and the onequery are the same. and i
thought you wrote both linkable and onequery.
i got a few questions for clarification purposes. please help to
clarify.
1) i initially placed the linkable directly in app/models/behaviors/
linkable.php
having recalled my meio_upload, i realised that the behavior file was
actually stored at plugins/meio_upload/models/behaviors/
meio_upload.php.
so i did the same for linkable and called the file using $this-
>Behaviors->attach(Linkable.Linkable);
so i should place such code in plugins ALWAYS?
2) your onequery is doing the same thing as Linkable yes? as in
optimizing the query. so to use it i need only placed it in plugins/mi/
models/behaviors/one_query.php
do i need the other mi files?
3) i am preparing a simple notes on the differences of using Linkable,
Containable and the standard recursive-find. hopefully by then i can
ask you to fill in the gaps in my knowledge.
Thank you.
On May 4, 11:12 pm, AD7six <andydawso...@gmail.com> wrote:
> On May 4, 4:24 pm, Kei Simone <kimc...@gmail.com> wrote:
>
> > Hi AD7six,
>
> > i apologise if i have asked a question that can be easily answered if
> > i looked a little more closely.
>
> I think you have a misunderstanding of what a plugin is (see the
> book) and are mixing the usage of two different behaviors together -
> see the test case OR just use linkable and follow the docs /for that/.
>
> http://bin.cakephp.org/view/19424286(I haven't changed your incorrect
> code because there's an error on every line)
>
> AD
>
> Check out the new CakePHP Questions sitehttp://cakeqs.organd 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 cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscribe@googlegroups.com For more options, visit this group athttp://groups.google.com/group/cake-php?hl=en
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 cake-php@googlegroups.com
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?hl=en
No comments:
Post a Comment