/** * @Route("/submissions", methods="GET") * @Request({"filter": "array", "page":"int"}) */ public function submissionsAction($filter = null, $page = 0) { $formmaker = App::module('bixie/formmaker'); return ['$view' => ['title' => __('Submissions'), 'name' => 'bixie/formmaker/admin/submissions.php'], '$data' => ['forms' => array_values(Form::query()->get()), 'statuses' => Submission::getStatuses(), 'config' => ['filter' => $filter, 'page' => $page]], 'frameworkValid' => $formmaker->checkFramework()]; }
/** * @Route("/submissions", methods="GET") * @Request({"filter": "array", "page":"int"}) */ public function submissionsAction($filter = null, $page = 0) { return ['$view' => ['title' => __('Submissions'), 'name' => 'bixie/formmaker/admin/submissions.php'], '$data' => ['forms' => array_values(Form::query()->get()), 'statuses' => Submission::getStatuses(), 'config' => ['filter' => $filter, 'page' => $page]]]; }
/** * @Route("/", methods="GET") */ public function indexAction() { //TODO pagination/filter $query = Form::query(); return array_values($query->related('fields')->get()); }