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
Description: header_logo
www.movepixels.com  |   <mailto:[email protected]> [email protected]  |
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.


<<image001.jpg>>

Reply via email to