Am Dienstag, 6. August 2013 21:02:53 UTC+2 schrieb advantage+:
Just a quick question,
I downloaded a plugin call it "Sortable" since I do not want to knock anyone's work and looking at the plugin I noticed the names of the Model and Component are the same "Sortable".
AppController has the component Sortable.sortable in the array.
So in any controller using the plugin it calls for "$this->Sortable->sort($data);
" for example. Respective model has $actsAs = "Sortable";
Is this bad? Is Cake going to take a hit looking in the Sortable Model/Behavior and the Sortable Component for the sort function?
Where does it look first for the "$this->Sortable->sort($data);
"? In the Sortable Component or Model?
Is this how it should be done? Just curious.
Dave Maharaj
Freelance Designer | Developer
www.movepixels.com | dave@movepixels.com | 709.800.0852
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment