}
if ($section->getStamps()) {
$sectionsAddFiles['stamp'] = $this->getDoctrine()->getRepository(File::class)->findOneBy(array('itemId' => $section->getStamps()->getId(), 'section' => 'stamp', 'type' => 'mainImage'));
}
}
return $this->render('Frontend/explore/swimmingpool.html.twig', ['section' => $sectionsAddFiles, 'oneSection'=>$oneSection]);
}
}
$this->dispatcher->dispatch(KernelEvents::CONTROLLER_ARGUMENTS, $event);
$controller = $event->getController();
$arguments = $event->getArguments();
// call controller
$response = $controller(...$arguments);
// view
if (!$response instanceof Response) {
$event = new GetResponseForControllerResultEvent($this, $request, $type, $response);
$this->dispatcher->dispatch(KernelEvents::VIEW, $event);
public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
{
$request->headers->set('X-Php-Ob-Level', ob_get_level());
try {
return $this->handleRaw($request, $type);
} catch (\Exception $e) {
if ($e instanceof RequestExceptionInterface) {
$e = new BadRequestHttpException($e->getMessage(), $e);
}
if (false === $catch) {
No log messages
ErrorException |
---|
ErrorException: Notice: Undefined variable: sectionsAddFiles at src/Controller/Frontend/ExploreController.php:283 at App\Controller\Frontend\ExploreController->hairdresser(object(TextHelper)) (vendor/symfony/http-kernel/HttpKernel.php:150) at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1) (vendor/symfony/http-kernel/HttpKernel.php:67) at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true) (vendor/symfony/http-kernel/Kernel.php:198) at Symfony\Component\HttpKernel\Kernel->handle(object(Request)) (public/index.php:37) |