[TYPO3-english] Extbase - set orderings in controller - several	plugin instances
    Jan Kornblum 
    jan.kornblum at gmx.de
       
    Tue Jan 27 18:51:46 CET 2015
    
    
  
Hi newsgroup,
Extbase query result ordering can be set from within a controller 
action like this:
A)
public function listAnimalsDescendingAction(){
   $this->animalsRepository->setOrderings(ORDER_DESCENDING);
   $anythings = $this->animalsRepository->findAll();
   [...]
}
B)
public function listAnimalsAction(){
   // NO ORDERING SET HERE
   $anythings = $this->animalsRepository->findAll();
   [...]
}
Now, the same plugin is placed several times on a certain page, each 
instance calls a different controller action (A and B). When the page 
is rendered now and plugin instance A) is called first, will this 
affect ordering of plugin instance B) too? Or do the plugin instances 
have something like an own "scope"?
I hope you understand what i mean ;)
Kind regards, Jan
    
    
More information about the TYPO3-english
mailing list