lifetime; } public function getKey($id = null) { return 'index_question_list'; } public function getContent($id = null) { $questionRepo = new QuestionRepo(); $where = [ 'published' => QuestionModel::PUBLISH_APPROVED, 'deleted' => 0, ]; $pager = $questionRepo->paginate($where, 'latest', 1, 10); $service = new QuestionListService(); $pager = $service->handleQuestions($pager); return $pager->items ?: []; } }