| @@ 14-25 (lines=12) @@ | ||
| 11 | class GroupController extends Controller |
|
| 12 | { |
|
| 13 | ||
| 14 | public function indexAction() { |
|
| 15 | ################################################ SETTINGS ################################################ |
|
| 16 | $repo = 'VivaitAuthBundle:Group'; |
|
| 17 | $twig = 'VivaitAuthBundle:Default:groups.html.twig'; |
|
| 18 | ############################################################################################################ |
|
| 19 | $db = $this->getDoctrine() |
|
| 20 | ->getRepository($repo) |
|
| 21 | ->findAll(); |
|
| 22 | ||
| 23 | $params = array(); |
|
| 24 | return $this->render($twig, array('db' => $db, 'params' => $params)); |
|
| 25 | } |
|
| 26 | ||
| 27 | public function editAction(Request $request) { |
|
| 28 | ################################################ SETTINGS ################################################ |
|
| @@ 10-21 (lines=12) @@ | ||
| 7 | use Vivait\AuthBundle\Entity\Tenant; |
|
| 8 | ||
| 9 | class TenantController extends Controller { |
|
| 10 | public function indexAction() { |
|
| 11 | ################################################ SETTINGS ################################################ |
|
| 12 | $repo = 'VivaitAuthBundle:Tenant'; |
|
| 13 | $twig = 'VivaitAuthBundle:Default:tenants.html.twig'; |
|
| 14 | ############################################################################################################ |
|
| 15 | $db = $this->getDoctrine() |
|
| 16 | ->getRepository($repo) |
|
| 17 | ->findAll(); |
|
| 18 | ||
| 19 | $params[''] = ''; |
|
| 20 | return $this->render($twig, array('db' => $db, 'params' => $params)); |
|
| 21 | } |
|
| 22 | ||
| 23 | public function editAction(Request $request) { |
|
| 24 | ################################################ SETTINGS ################################################ |
|