protected function render(string $view, array $parameters = [], Response $response = null): Response
{
if ($this->container->has('templating') && $this->container->get('templating')->supports($view)) {
@trigger_error('Using the "templating" service is deprecated since version 4.3 and will be removed in 5.0; use Twig instead.', \E_USER_DEPRECATED);
$content = $this->container->get('templating')->render($view, $parameters);
} elseif ($this->container->has('twig')) {
$content = $this->container->get('twig')->render($view, $parameters);
} else {
throw new \LogicException('You can not use the "render" method if the Templating Component or the Twig Bundle are not available. Try running "composer require symfony/twig-bundle".');
}
$session = new Session();
$this->addData('localeMenu', $session->get(self::LOCALE_MENU));
$session->set(self::LOCALE_MENU, false);
$this->addData('_locale', $_locale);
return $this->render('legal/' . $document . '.html.twig', $this->getData());
}
/**
* @Route("/{_locale}/pdf/{document}", name="pdf_legal")
*/
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
$controller = $event->getController();
$arguments = $event->getArguments();
// call controller
$response = $controller(...$arguments);
// view
if (!$response instanceof Response) {
$event = new ViewEvent($this, $request, $type, $response);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
try {
return $this->handleRaw($request, $type);
} catch (\Exception $e) {
if ($e instanceof RequestExceptionInterface) {
$e = new BadRequestHttpException($e->getMessage(), $e);
}
if (false === $catch) {
@trigger_error('Passing a \Twig\Template instance to '.__METHOD__.' is deprecated since Twig 2.7.0, use \Twig\TemplateWrapper instead.', \E_USER_DEPRECATED);
return new TemplateWrapper($this, $name);
}
return new TemplateWrapper($this, $this->loadTemplate($name));
}
/**
* Loads a template internal representation.
*
protected function render(string $view, array $parameters = [], Response $response = null): Response
{
if ($this->container->has('templating') && $this->container->get('templating')->supports($view)) {
@trigger_error('Using the "templating" service is deprecated since version 4.3 and will be removed in 5.0; use Twig instead.', \E_USER_DEPRECATED);
$content = $this->container->get('templating')->render($view, $parameters);
} elseif ($this->container->has('twig')) {
$content = $this->container->get('twig')->render($view, $parameters);
} else {
throw new \LogicException('You can not use the "render" method if the Templating Component or the Twig Bundle are not available. Try running "composer require symfony/twig-bundle".');
}
$session = new Session();
$this->addData('localeMenu', $session->get(self::LOCALE_MENU));
$session->set(self::LOCALE_MENU, false);
$this->addData('_locale', $_locale);
return $this->render('legal/' . $document . '.html.twig', $this->getData());
}
/**
* @Route("/{_locale}/pdf/{document}", name="pdf_legal")
*/
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
$controller = $event->getController();
$arguments = $event->getArguments();
// call controller
$response = $controller(...$arguments);
// view
if (!$response instanceof Response) {
$event = new ViewEvent($this, $request, $type, $response);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
try {
return $this->handleRaw($request, $type);
} catch (\Exception $e) {
if ($e instanceof RequestExceptionInterface) {
$e = new BadRequestHttpException($e->getMessage(), $e);
}
if (false === $catch) {
[2/2] InvalidArgumentException |
---|
InvalidArgumentException: Unable to find template "legal/www.ghostery.com.html.twig" (looked into: /home/clinicaexcelan23/web/clinicaexcelan.com/public_html/templates, /home/clinicaexcelan23/web/clinicaexcelan.com/public_html/templates, /home/clinicaexcelan23/web/clinicaexcelan.com/public_html/vendor/symfony/twig-bridge/Resources/views/Form). at vendor/symfony/twig-bridge/TwigEngine.php:137 at Symfony\Bridge\Twig\TwigEngine->load('legal/www.ghostery.com.html.twig') (vendor/symfony/twig-bridge/TwigEngine.php:54) at Symfony\Bridge\Twig\TwigEngine->render('legal/www.ghostery.com.html.twig', array('app_name' => 'Trendix App', 'principalMenu' => array(array('id' => 'dashboard', 'label' => 'Dashboard', 'icon' => 'home', 'route' => 'admin', 'params' => array(), 'cond' => true, 'submenu' => array()), array('id' => 'posts', 'label' => 'Posts', 'icon' => 'assignment-o', 'route' => null, 'params' => array(), 'cond' => true, 'submenu' => array(array('id' => '', 'label' => 'Listado', 'icon' => null, 'route' => 'post_category_index', 'params' => array(), 'cond' => true, 'submenu' => array()), array('id' => '', 'label' => 'Nueva categoría de posts', 'icon' => null, 'route' => 'post_category_new', 'params' => array(), 'cond' => true, 'submenu' => array()), array('id' => '', 'label' => 'Nuevo post', 'icon' => null, 'route' => 'post_new', 'params' => array(), 'cond' => true, 'submenu' => array()))), array('id' => 'services', 'label' => 'Servicios', 'icon' => 'play-for-work', 'route' => null, 'params' => array(), 'cond' => true, 'submenu' => array(array('id' => '', 'label' => 'Listado', 'icon' => null, 'route' => 'service_index', 'params' => array(), 'cond' => true, 'submenu' => array()), array('id' => '', 'label' => 'Nuevo', 'icon' => null, 'route' => 'service_new', 'params' => array(), 'cond' => true, 'submenu' => array()))), array('id' => 'certifications', 'label' => 'Certificationes', 'icon' => 'certificate', 'route' => null, 'params' => array(), 'cond' => true, 'submenu' => array(array('id' => '', 'label' => 'Listado', 'icon' => null, 'route' => 'certifications_index', 'params' => array(), 'cond' => true, 'submenu' => array()), array('id' => '', 'label' => 'Nuevo', 'icon' => null, 'route' => 'certifications_new', 'params' => array(), 'cond' => true, 'submenu' => array()))), array('id' => 'setting', 'label' => 'Configuración', 'icon' => 'play-for-work', 'route' => 'setting_index', 'params' => array(), 'cond' => true, 'submenu' => array())), 'hideTitle' => null, 'titleLogo' => null, 'hideMenu' => false, 'registerButton' => null, 'locales' => array('en', 'es'), 'admin_theme' => 'green', 'base_template' => null, 'localeMenu' => null, '_locale' => 'en', 'localesUrls' => array('en-es' => 'http://www.clinicaexcelan.com/en/legal/www.ghostery.com', 'es-es' => 'http://www.clinicaexcelan.com/es/legal/www.ghostery.com'), 'services' => array(object(ClinicService), object(ClinicService), object(ClinicService), object(ClinicService), object(ClinicService), object(ClinicService), object(ClinicService)), 'ratingValue' => 0, 'bestRating' => 0, 'worstRating' => 0, 'ratingCount' => 0)) (vendor/symfony/framework-bundle/Controller/ControllerTrait.php:233) at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->render('legal/www.ghostery.com.html.twig', array('app_name' => 'Trendix App', 'principalMenu' => array(array('id' => 'dashboard', 'label' => 'Dashboard', 'icon' => 'home', 'route' => 'admin', 'params' => array(), 'cond' => true, 'submenu' => array()), array('id' => 'posts', 'label' => 'Posts', 'icon' => 'assignment-o', 'route' => null, 'params' => array(), 'cond' => true, 'submenu' => array(array('id' => '', 'label' => 'Listado', 'icon' => null, 'route' => 'post_category_index', 'params' => array(), 'cond' => true, 'submenu' => array()), array('id' => '', 'label' => 'Nueva categoría de posts', 'icon' => null, 'route' => 'post_category_new', 'params' => array(), 'cond' => true, 'submenu' => array()), array('id' => '', 'label' => 'Nuevo post', 'icon' => null, 'route' => 'post_new', 'params' => array(), 'cond' => true, 'submenu' => array()))), array('id' => 'services', 'label' => 'Servicios', 'icon' => 'play-for-work', 'route' => null, 'params' => array(), 'cond' => true, 'submenu' => array(array('id' => '', 'label' => 'Listado', 'icon' => null, 'route' => 'service_index', 'params' => array(), 'cond' => true, 'submenu' => array()), array('id' => '', 'label' => 'Nuevo', 'icon' => null, 'route' => 'service_new', 'params' => array(), 'cond' => true, 'submenu' => array()))), array('id' => 'certifications', 'label' => 'Certificationes', 'icon' => 'certificate', 'route' => null, 'params' => array(), 'cond' => true, 'submenu' => array(array('id' => '', 'label' => 'Listado', 'icon' => null, 'route' => 'certifications_index', 'params' => array(), 'cond' => true, 'submenu' => array()), array('id' => '', 'label' => 'Nuevo', 'icon' => null, 'route' => 'certifications_new', 'params' => array(), 'cond' => true, 'submenu' => array()))), array('id' => 'setting', 'label' => 'Configuración', 'icon' => 'play-for-work', 'route' => 'setting_index', 'params' => array(), 'cond' => true, 'submenu' => array())), 'hideTitle' => null, 'titleLogo' => null, 'hideMenu' => false, 'registerButton' => null, 'locales' => array('en', 'es'), 'admin_theme' => 'green', 'base_template' => null, 'localeMenu' => null, '_locale' => 'en', 'localesUrls' => array('en-es' => 'http://www.clinicaexcelan.com/en/legal/www.ghostery.com', 'es-es' => 'http://www.clinicaexcelan.com/es/legal/www.ghostery.com'), 'services' => array(object(ClinicService), object(ClinicService), object(ClinicService), object(ClinicService), object(ClinicService), object(ClinicService), object(ClinicService)), 'ratingValue' => 0, 'bestRating' => 0, 'worstRating' => 0, 'ratingCount' => 0), null) (vendor/trendix/admin-bundle/Controller/BaseController.php:278) at Trendix\AdminBundle\Controller\BaseController->render('legal/www.ghostery.com.html.twig', array('app_name' => 'Trendix App', 'principalMenu' => array(array('id' => 'dashboard', 'label' => 'Dashboard', 'icon' => 'home', 'route' => 'admin', 'params' => array(), 'cond' => true, 'submenu' => array()), array('id' => 'posts', 'label' => 'Posts', 'icon' => 'assignment-o', 'route' => null, 'params' => array(), 'cond' => true, 'submenu' => array(array('id' => '', 'label' => 'Listado', 'icon' => null, 'route' => 'post_category_index', 'params' => array(), 'cond' => true, 'submenu' => array()), array('id' => '', 'label' => 'Nueva categoría de posts', 'icon' => null, 'route' => 'post_category_new', 'params' => array(), 'cond' => true, 'submenu' => array()), array('id' => '', 'label' => 'Nuevo post', 'icon' => null, 'route' => 'post_new', 'params' => array(), 'cond' => true, 'submenu' => array()))), array('id' => 'services', 'label' => 'Servicios', 'icon' => 'play-for-work', 'route' => null, 'params' => array(), 'cond' => true, 'submenu' => array(array('id' => '', 'label' => 'Listado', 'icon' => null, 'route' => 'service_index', 'params' => array(), 'cond' => true, 'submenu' => array()), array('id' => '', 'label' => 'Nuevo', 'icon' => null, 'route' => 'service_new', 'params' => array(), 'cond' => true, 'submenu' => array()))), array('id' => 'certifications', 'label' => 'Certificationes', 'icon' => 'certificate', 'route' => null, 'params' => array(), 'cond' => true, 'submenu' => array(array('id' => '', 'label' => 'Listado', 'icon' => null, 'route' => 'certifications_index', 'params' => array(), 'cond' => true, 'submenu' => array()), array('id' => '', 'label' => 'Nuevo', 'icon' => null, 'route' => 'certifications_new', 'params' => array(), 'cond' => true, 'submenu' => array()))), array('id' => 'setting', 'label' => 'Configuración', 'icon' => 'play-for-work', 'route' => 'setting_index', 'params' => array(), 'cond' => true, 'submenu' => array())), 'hideTitle' => null, 'titleLogo' => null, 'hideMenu' => false, 'registerButton' => null, 'locales' => array('en', 'es'), 'admin_theme' => 'green', 'base_template' => null, 'localeMenu' => null, '_locale' => 'en', 'localesUrls' => array('en-es' => 'http://www.clinicaexcelan.com/en/legal/www.ghostery.com', 'es-es' => 'http://www.clinicaexcelan.com/es/legal/www.ghostery.com'), 'services' => array(object(ClinicService), object(ClinicService), object(ClinicService), object(ClinicService), object(ClinicService), object(ClinicService), object(ClinicService)), 'ratingValue' => 0, 'bestRating' => 0, 'worstRating' => 0, 'ratingCount' => 0)) (src/Controller/DefaultController.php:240) at App\Controller\DefaultController->cookiesAction('en', 'www.ghostery.com') (vendor/symfony/http-kernel/HttpKernel.php:169) at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1) (vendor/symfony/http-kernel/HttpKernel.php:81) at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true) (vendor/symfony/http-kernel/Kernel.php:201) at Symfony\Component\HttpKernel\Kernel->handle(object(Request)) (public/index.php:38) |
[1/2] LoaderError |
---|
Twig\Error\LoaderError: Unable to find template "legal/www.ghostery.com.html.twig" (looked into: /home/clinicaexcelan23/web/clinicaexcelan.com/public_html/templates, /home/clinicaexcelan23/web/clinicaexcelan.com/public_html/templates, /home/clinicaexcelan23/web/clinicaexcelan.com/public_html/vendor/symfony/twig-bridge/Resources/views/Form). at vendor/twig/twig/src/Loader/FilesystemLoader.php:250 at Twig\Loader\FilesystemLoader->findTemplate('legal/www.ghostery.com.html.twig') (vendor/symfony/twig-bundle/Loader/FilesystemLoader.php:82) at Symfony\Bundle\TwigBundle\Loader\FilesystemLoader->findTemplate('legal/www.ghostery.com.html.twig') (vendor/twig/twig/src/Loader/FilesystemLoader.php:150) at Twig\Loader\FilesystemLoader->getCacheKey('legal/www.ghostery.com.html.twig') (vendor/twig/twig/src/Environment.php:299) at Twig\Environment->getTemplateClass('legal/www.ghostery.com.html.twig') (vendor/twig/twig/src/Environment.php:381) at Twig\Environment->loadTemplate('legal/www.ghostery.com.html.twig') (vendor/twig/twig/src/Environment.php:359) at Twig\Environment->load('legal/www.ghostery.com.html.twig') (vendor/symfony/twig-bridge/TwigEngine.php:135) at Symfony\Bridge\Twig\TwigEngine->load('legal/www.ghostery.com.html.twig') (vendor/symfony/twig-bridge/TwigEngine.php:54) at Symfony\Bridge\Twig\TwigEngine->render('legal/www.ghostery.com.html.twig', array('app_name' => 'Trendix App', 'principalMenu' => array(array('id' => 'dashboard', 'label' => 'Dashboard', 'icon' => 'home', 'route' => 'admin', 'params' => array(), 'cond' => true, 'submenu' => array()), array('id' => 'posts', 'label' => 'Posts', 'icon' => 'assignment-o', 'route' => null, 'params' => array(), 'cond' => true, 'submenu' => array(array('id' => '', 'label' => 'Listado', 'icon' => null, 'route' => 'post_category_index', 'params' => array(), 'cond' => true, 'submenu' => array()), array('id' => '', 'label' => 'Nueva categoría de posts', 'icon' => null, 'route' => 'post_category_new', 'params' => array(), 'cond' => true, 'submenu' => array()), array('id' => '', 'label' => 'Nuevo post', 'icon' => null, 'route' => 'post_new', 'params' => array(), 'cond' => true, 'submenu' => array()))), array('id' => 'services', 'label' => 'Servicios', 'icon' => 'play-for-work', 'route' => null, 'params' => array(), 'cond' => true, 'submenu' => array(array('id' => '', 'label' => 'Listado', 'icon' => null, 'route' => 'service_index', 'params' => array(), 'cond' => true, 'submenu' => array()), array('id' => '', 'label' => 'Nuevo', 'icon' => null, 'route' => 'service_new', 'params' => array(), 'cond' => true, 'submenu' => array()))), array('id' => 'certifications', 'label' => 'Certificationes', 'icon' => 'certificate', 'route' => null, 'params' => array(), 'cond' => true, 'submenu' => array(array('id' => '', 'label' => 'Listado', 'icon' => null, 'route' => 'certifications_index', 'params' => array(), 'cond' => true, 'submenu' => array()), array('id' => '', 'label' => 'Nuevo', 'icon' => null, 'route' => 'certifications_new', 'params' => array(), 'cond' => true, 'submenu' => array()))), array('id' => 'setting', 'label' => 'Configuración', 'icon' => 'play-for-work', 'route' => 'setting_index', 'params' => array(), 'cond' => true, 'submenu' => array())), 'hideTitle' => null, 'titleLogo' => null, 'hideMenu' => false, 'registerButton' => null, 'locales' => array('en', 'es'), 'admin_theme' => 'green', 'base_template' => null, 'localeMenu' => null, '_locale' => 'en', 'localesUrls' => array('en-es' => 'http://www.clinicaexcelan.com/en/legal/www.ghostery.com', 'es-es' => 'http://www.clinicaexcelan.com/es/legal/www.ghostery.com'), 'services' => array(object(ClinicService), object(ClinicService), object(ClinicService), object(ClinicService), object(ClinicService), object(ClinicService), object(ClinicService)), 'ratingValue' => 0, 'bestRating' => 0, 'worstRating' => 0, 'ratingCount' => 0)) (vendor/symfony/framework-bundle/Controller/ControllerTrait.php:233) at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->render('legal/www.ghostery.com.html.twig', array('app_name' => 'Trendix App', 'principalMenu' => array(array('id' => 'dashboard', 'label' => 'Dashboard', 'icon' => 'home', 'route' => 'admin', 'params' => array(), 'cond' => true, 'submenu' => array()), array('id' => 'posts', 'label' => 'Posts', 'icon' => 'assignment-o', 'route' => null, 'params' => array(), 'cond' => true, 'submenu' => array(array('id' => '', 'label' => 'Listado', 'icon' => null, 'route' => 'post_category_index', 'params' => array(), 'cond' => true, 'submenu' => array()), array('id' => '', 'label' => 'Nueva categoría de posts', 'icon' => null, 'route' => 'post_category_new', 'params' => array(), 'cond' => true, 'submenu' => array()), array('id' => '', 'label' => 'Nuevo post', 'icon' => null, 'route' => 'post_new', 'params' => array(), 'cond' => true, 'submenu' => array()))), array('id' => 'services', 'label' => 'Servicios', 'icon' => 'play-for-work', 'route' => null, 'params' => array(), 'cond' => true, 'submenu' => array(array('id' => '', 'label' => 'Listado', 'icon' => null, 'route' => 'service_index', 'params' => array(), 'cond' => true, 'submenu' => array()), array('id' => '', 'label' => 'Nuevo', 'icon' => null, 'route' => 'service_new', 'params' => array(), 'cond' => true, 'submenu' => array()))), array('id' => 'certifications', 'label' => 'Certificationes', 'icon' => 'certificate', 'route' => null, 'params' => array(), 'cond' => true, 'submenu' => array(array('id' => '', 'label' => 'Listado', 'icon' => null, 'route' => 'certifications_index', 'params' => array(), 'cond' => true, 'submenu' => array()), array('id' => '', 'label' => 'Nuevo', 'icon' => null, 'route' => 'certifications_new', 'params' => array(), 'cond' => true, 'submenu' => array()))), array('id' => 'setting', 'label' => 'Configuración', 'icon' => 'play-for-work', 'route' => 'setting_index', 'params' => array(), 'cond' => true, 'submenu' => array())), 'hideTitle' => null, 'titleLogo' => null, 'hideMenu' => false, 'registerButton' => null, 'locales' => array('en', 'es'), 'admin_theme' => 'green', 'base_template' => null, 'localeMenu' => null, '_locale' => 'en', 'localesUrls' => array('en-es' => 'http://www.clinicaexcelan.com/en/legal/www.ghostery.com', 'es-es' => 'http://www.clinicaexcelan.com/es/legal/www.ghostery.com'), 'services' => array(object(ClinicService), object(ClinicService), object(ClinicService), object(ClinicService), object(ClinicService), object(ClinicService), object(ClinicService)), 'ratingValue' => 0, 'bestRating' => 0, 'worstRating' => 0, 'ratingCount' => 0), null) (vendor/trendix/admin-bundle/Controller/BaseController.php:278) at Trendix\AdminBundle\Controller\BaseController->render('legal/www.ghostery.com.html.twig', array('app_name' => 'Trendix App', 'principalMenu' => array(array('id' => 'dashboard', 'label' => 'Dashboard', 'icon' => 'home', 'route' => 'admin', 'params' => array(), 'cond' => true, 'submenu' => array()), array('id' => 'posts', 'label' => 'Posts', 'icon' => 'assignment-o', 'route' => null, 'params' => array(), 'cond' => true, 'submenu' => array(array('id' => '', 'label' => 'Listado', 'icon' => null, 'route' => 'post_category_index', 'params' => array(), 'cond' => true, 'submenu' => array()), array('id' => '', 'label' => 'Nueva categoría de posts', 'icon' => null, 'route' => 'post_category_new', 'params' => array(), 'cond' => true, 'submenu' => array()), array('id' => '', 'label' => 'Nuevo post', 'icon' => null, 'route' => 'post_new', 'params' => array(), 'cond' => true, 'submenu' => array()))), array('id' => 'services', 'label' => 'Servicios', 'icon' => 'play-for-work', 'route' => null, 'params' => array(), 'cond' => true, 'submenu' => array(array('id' => '', 'label' => 'Listado', 'icon' => null, 'route' => 'service_index', 'params' => array(), 'cond' => true, 'submenu' => array()), array('id' => '', 'label' => 'Nuevo', 'icon' => null, 'route' => 'service_new', 'params' => array(), 'cond' => true, 'submenu' => array()))), array('id' => 'certifications', 'label' => 'Certificationes', 'icon' => 'certificate', 'route' => null, 'params' => array(), 'cond' => true, 'submenu' => array(array('id' => '', 'label' => 'Listado', 'icon' => null, 'route' => 'certifications_index', 'params' => array(), 'cond' => true, 'submenu' => array()), array('id' => '', 'label' => 'Nuevo', 'icon' => null, 'route' => 'certifications_new', 'params' => array(), 'cond' => true, 'submenu' => array()))), array('id' => 'setting', 'label' => 'Configuración', 'icon' => 'play-for-work', 'route' => 'setting_index', 'params' => array(), 'cond' => true, 'submenu' => array())), 'hideTitle' => null, 'titleLogo' => null, 'hideMenu' => false, 'registerButton' => null, 'locales' => array('en', 'es'), 'admin_theme' => 'green', 'base_template' => null, 'localeMenu' => null, '_locale' => 'en', 'localesUrls' => array('en-es' => 'http://www.clinicaexcelan.com/en/legal/www.ghostery.com', 'es-es' => 'http://www.clinicaexcelan.com/es/legal/www.ghostery.com'), 'services' => array(object(ClinicService), object(ClinicService), object(ClinicService), object(ClinicService), object(ClinicService), object(ClinicService), object(ClinicService)), 'ratingValue' => 0, 'bestRating' => 0, 'worstRating' => 0, 'ratingCount' => 0)) (src/Controller/DefaultController.php:240) at App\Controller\DefaultController->cookiesAction('en', 'www.ghostery.com') (vendor/symfony/http-kernel/HttpKernel.php:169) at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1) (vendor/symfony/http-kernel/HttpKernel.php:81) at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true) (vendor/symfony/http-kernel/Kernel.php:201) at Symfony\Component\HttpKernel\Kernel->handle(object(Request)) (public/index.php:38) |