1161 Posts in 2632 Topics by 409 members
|Go to End|
3 January 2014 at 4:37am
i have little problem with this code
class PageControllerExtension extends Extension
private static $allowed_actions = array(
public function loadNextPage()
$pl = $this->owner->PaginatedList();
when i call url with this method "something/loadNextPage" it doesnt work
is still possible call actions defined in extensions?
3 January 2014 at 6:28pm
I haven't tested this myself but last time I did it didn't work so I created my own controller / route and used that instead. But that was back in 2.4. Make sure you've done a ?flush=1 and that the extension is added to the controller. Looking at the implementation of it (RequestHandler::allowedActions) it should work.
3 January 2014 at 10:48pm
Thanks Willr, I was pretty sure I flushed this page becouse other methods work but obviously not...
after flush works perfect
|Go to Top|