You cannot use the “render” method if the Twig Bundle is not available. Try running “composer require symfony/twig-bundle”.
LogicException
in C:\Users\User\OneDrive\Bureau\lovoresume\vendor\symfony\framework-bundle\Controller\AbstractController.php (line 418)
} private function doRenderView(string $view, ?string $block, array $parameters, string $method): string { if (!$this->container->has(‘twig’)) { throw new \LogicException(\sprintf(‘You cannot use the “%s” method if the Twig Bundle is not available. Try running “composer require symfony/twig-bundle”.’, $method)); } foreach ($parameters as $k => $v) { if ($v instanceof FormInterface) { $parameters[$k] = $v->createView();
AbstractController->doRenderView(‘listCV.html.twig’, null, array(‘cvs’ => array(object(Cv), object(Cv), object(Cv), object(Cv)), ‘cvTemplates’ => array(object(TemplateCv), object(TemplateCv)), ‘ficheCompetencesTemplates’ => array(object(TemplateFicheCompetence))), ‘render’)
in C:\Users\User\OneDrive\Bureau\lovoresume\vendor\symfony\framework-bundle\Controller\AbstractController.php (line 436)
AbstractController->doRender(‘listCV.html.twig’, null, array(‘cvs’ => array(object(Cv), object(Cv), object(Cv), object(Cv)), ‘cvTemplates’ => array(object(TemplateCv), object(TemplateCv)), ‘ficheCompetencesTemplates’ => array(object(TemplateFicheCompetence))), null, ‘render’)
in C:\Users\User\OneDrive\Bureau\lovoresume\vendor\symfony\framework-bundle\Controller\AbstractController.php (line 250)
AbstractController->render(‘listCV.html.twig’, array(‘cvs’ => array(object(Cv), object(Cv), object(Cv), object(Cv)), ‘cvTemplates’ => array(object(TemplateCv), object(TemplateCv)), ‘ficheCompetencesTemplates’ => array(object(TemplateFicheCompetence))))
in C:\Users\User\OneDrive\Bureau\lovoresume\src\Controller\CvController.php (line 84)
CvController->list(object(EntityManagerGhost614a58f), object(TemplateCvRepository), object(TemplateFicheRepository))
in C:\Users\User\OneDrive\Bureau\lovoresume\vendor\symfony\http-kernel\HttpKernel.php (line 183)
HttpKernel->handleRaw(object(Request), 1)
in C:\Users\User\OneDrive\Bureau\lovoresume\vendor\symfony\http-kernel\HttpKernel.php (line 76)
HttpKernel->handle(object(Request), 1, true)
in C:\Users\User\OneDrive\Bureau\lovoresume\vendor\symfony\http-kernel\Kernel.php (line 182)
Kernel->handle(object(Request))
in C:\Users\User\OneDrive\Bureau\lovoresume\vendor\symfony\runtime\Runner\Symfony\HttpKernelRunner.php (line 35)
HttpKernelRunner->run()
in C:\Users\User\OneDrive\Bureau\lovoresume\vendor\autoload_runtime.php (line 29)
require_once(‘C:\Users\User\OneDrive\Bureau\lovoresume\vendor\autoload_runtime.php’)
in C:\Users\User\OneDrive\Bureau\lovoresume\public\index.php (line 5)
SaralynBegginer
php – You cannot use the “render” method if the Twig Bundle is not available. Try running “composer require symfony/twig-bundle”
Share