form created + general layout of templates

This commit is contained in:
2022-01-18 14:54:03 +01:00
parent b31cc460fa
commit 4a5a1440ff
5 changed files with 121 additions and 12 deletions

View File

@@ -11,6 +11,7 @@ declare(strict_types=1);
namespace Chill\PersonBundle\Controller;
use Chill\PersonBundle\Form\PersonResourceType;
use Chill\PersonBundle\Repository\PersonRepository;
use Chill\PersonBundle\Repository\PersonResourceRepository;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
@@ -30,13 +31,15 @@ final class PersonResourceController extends AbstractController
public function listAction($person_id)
{
dump($person_id);
$person = $this->personRepository->find($person_id);
dump($person);
$form = $this->createForm(PersonResourceType::class);
return $this->render(
'ChillPersonBundle:PersonResource:list.html.twig',
[
'person' => $person
'person' => $person,
'form' => $form->createView()
]
);
}