Czesc mam taki problem, że wywala mi bład podczas gdy chce użyc przekierowania w symfony lub jak chcesz użyć renderowania szablonu :/
KOD:
<?php
/**
* Created by PhpStorm.
* User: kamil
* Date: 22.09.17
* Time: 18:15
*/
namespace AppBundle\Controller;
use Symfony\Component\HttpFoundation\Response;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Symfony\Bridge\Twig\Node\RenderBlockNode;
class HelloController
{
/**
* @Route ("/hello/{name}")
*/
public function indexAction($name)
{
return $this->render('hello/index.html.twig', array('name' => $name));
}
}
BŁĄD:
Widzę, że słaba jakość zdjęcia ;/ Jest tam napisane : Symfony\Component\Debug\Exception\UndefinedMethodException
oraz podswietla linijke
return $this->render('hello/index.html.twig', array('name' => $name));