<h1><?php //echo HEADING_TITLE; ?></h1>
<?php
//$pfad = $_SERVER['PHP_SELF']; // aktuellen Dateipfad ermitteln, wichtig fuer die Links der Seitennavigation
$pfad = DIR_WS_HTTP_CATALOG.basename($_SERVER['PHP_SELF'])."?picture=".$_GET['picture']; // aktuellen Dateipfad ermitteln, wichtig fuer die Links der Seitennavigation
//$catarticle = $_GET['catarticle'];
//if ($catarticle != '1') {
//$query = $subcategories_products_query; // DB Abfragee
//}
//else {
$this->parents[$key] = null;
// attach the global variables
$parameters = array_replace($this->getGlobals(), $parameters);
// render
if (false === $content = $this->evaluate($storage, $parameters)) {
throw new \RuntimeException(sprintf('The template "%s" cannot be rendered.', $this->parser->parse($name)));
}
// decorator
if ($this->parents[$key]) {
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".');
}
$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);
public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
{
$request->headers->set('X-Php-Ob-Level', (string) 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 index: picture at public/_templates/golf_standard/motive.php:10 at include('/home2/www/mybestshirt/kamashop_v2.0/public/_templates/golf_standard/motive.php') (src/Resources/views/legacy/skeleton.html.php:21) at require('/home2/www/mybestshirt/kamashop_v2.0/src/Resources/views/legacy/skeleton.html.php') (vendor/symfony/templating/PhpEngine.php:147) at Symfony\Component\Templating\PhpEngine->evaluate() (vendor/symfony/templating/PhpEngine.php:76) at Symfony\Component\Templating\PhpEngine->render() (vendor/symfony/framework-bundle/Templating/TimedPhpEngine.php:46) at Symfony\Bundle\FrameworkBundle\Templating\TimedPhpEngine->render() (vendor/symfony/framework-bundle/Controller/ControllerTrait.php:233) at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->render() (src/Controller/ShoppingController.php:170) at App\Controller\ShoppingController->motive() (vendor/symfony/http-kernel/HttpKernel.php:158) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:80) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:201) at Symfony\Component\HttpKernel\Kernel->handle() (public/index.php:25) |