mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
form created + general layout of templates
This commit is contained in:
@@ -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()
|
||||
]
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user