mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-23 08:03:49 +00:00
create edit page
This commit is contained in:
@@ -21,6 +21,20 @@ class PersonController extends Controller {
|
||||
|
||||
}
|
||||
|
||||
public function editAction($id) {
|
||||
$person = $this->_getPerson($id);
|
||||
|
||||
if ($person === null) {
|
||||
$this->createNotFoundException();
|
||||
}
|
||||
|
||||
$form = $this->createForm(new \CL\Chill\PersonBundle\Form\PersonType(), $person);
|
||||
|
||||
return $this->render('CLChillPersonBundle:Person:edit.html.twig',
|
||||
array('person' => $person,
|
||||
'form' => $form->createView()));
|
||||
}
|
||||
|
||||
public function searchAction() {
|
||||
$q = $this->getRequest()->query->getAlnum('q', '');
|
||||
$q = trim($q);
|
||||
|
Reference in New Issue
Block a user