Hi,
I have a class
class Page_Controller extends ContentController {
/**
* @returns - sorted children according to the given criteria
*/
public function reverseChildren($field, $direction) {
$children = $this->Children();
$children->sort($field,$direction);
return $children;
}
}
and then a class
class ArticleHolder_Controller extends Page_Controller { ... }
I use
<% control reverseChildren(Date,DESC) %> in ArticleHolder.ss template, but it does nothing. When I move (or copy) the function reverseChildren from the Page_Controller class to the ArticleHolder_Controller class, then it works fine. I have tried to flush DB, flush the page, but still the same weird behaviour. Any clue?
Thanks