some fix
This commit is contained in:
parent
3df81597b6
commit
4273b8d490
@ -4,17 +4,17 @@ namespace app\controllers;
|
||||
use app\models\Question;
|
||||
|
||||
class QuestionController{
|
||||
public function actionCreate()
|
||||
public function actionCreate(): void
|
||||
{
|
||||
require "app/views/questionCreate.php";
|
||||
}
|
||||
|
||||
public function actionGetQuestionsWithAnswers()
|
||||
public function actionGetQuestionsWithAnswers(): array
|
||||
{
|
||||
return Question::with('AnswerController')->get()->toArray();
|
||||
}
|
||||
|
||||
public function actionGetQuestionsWithUsers()
|
||||
public function actionGetQuestionsWithUsers(): array
|
||||
{
|
||||
return Question::with('user')->get()->toArray();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user