Improved pagination

This commit is contained in:
Frank Schubert
2022-03-24 16:46:11 +01:00
parent 455a5af4aa
commit cd88c4f57c
10 changed files with 371 additions and 116 deletions
@@ -0,0 +1,24 @@
<?php
class PreorderController extends mfBaseController {
protected function init() {
$this->needlogin=true;
$me = new User();
$me->loadMe();
$this->me = $me;
$this->layout()->set("me",$me);
if(!$me->is(["Admin"])) {
$this->redirect("Dashboard");
}
}
protected function indexAction() {
$this->layout()->setTemplate("Preorder/Index");
$campaigns = PreorderModel::getAll();
$this->layout()->set("campaigns", $campaigns);
}
}