mirror of
https://framagit.org/tykayn/date-poll-api
synced 2023-08-25 08:23:11 +02:00
globals twig support and website
This commit is contained in:
parent
edfb65c56e
commit
8bc01198b8
@ -1,6 +1,8 @@
|
||||
twig:
|
||||
default_path: '%kernel.project_dir%/templates'
|
||||
globals:
|
||||
BASE_URL: '%env(BASE_URL)%'
|
||||
APP_ENV: '%env(APP_ENV)%'
|
||||
WEBSITE_NAME: '%env(WEBSITE_NAME)%'
|
||||
WEBSITE_LOGO: '%env(WEBSITE_LOGO)%'
|
||||
APP_ENV: '%env(APP_ENV)%'
|
||||
SUPPORT_EMAIL: '%env(SUPPORT_EMAIL)%'
|
||||
|
@ -29,7 +29,8 @@ class PollController extends AbstractController
|
||||
}
|
||||
return $this->render('poll/index.html.twig', [
|
||||
'count' => count($polls),
|
||||
'polls' => $titles,
|
||||
'titles' => $titles,
|
||||
'polls' => $polls,
|
||||
]);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user