I created a new table (which has nothing to do with other tables), and of course I built a new entity, and then I made a new controller.
But unlike the example shown here in the tutorial, the new controller is not supposed to send the data to a new HTML format, but to an existing template (I edit) forum_post_quick_thread (because I am changing and adding the display there).
Where should I turn the controller? And how?
In the meantime I did this (which is for some reason not good ..)
Thanks in advance.
But unlike the example shown here in the tutorial, the new controller is not supposed to send the data to a new HTML format, but to an existing template (I edit) forum_post_quick_thread (because I am changing and adding the display there).
Where should I turn the controller? And how?
In the meantime I did this (which is for some reason not good ..)
Code:
public function actionClassifications()
{
$repo = $this->repository('BoardOfProfessionals:BOPClassifications');
$finder = $repo->findClassificationsForBoardOfProfessionalsView();
$viewParamsBoard = [
'featuredThreads' => $finder->fetch()
];
// echo json_encode ($viewParams);
return $this->view('forum_post_quick_thread:View', 'forum_post_quick_thread_view', $viewParamsBoard);
}
Thanks in advance.