globals twig support and website
This commit is contained in:
parent
edfb65c56e
commit
8bc01198b8
|
@ -1,6 +1,8 @@
|
||||||
twig:
|
twig:
|
||||||
default_path: '%kernel.project_dir%/templates'
|
default_path: '%kernel.project_dir%/templates'
|
||||||
globals:
|
globals:
|
||||||
|
BASE_URL: '%env(BASE_URL)%'
|
||||||
|
APP_ENV: '%env(APP_ENV)%'
|
||||||
WEBSITE_NAME: '%env(WEBSITE_NAME)%'
|
WEBSITE_NAME: '%env(WEBSITE_NAME)%'
|
||||||
WEBSITE_LOGO: '%env(WEBSITE_LOGO)%'
|
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', [
|
return $this->render('poll/index.html.twig', [
|
||||||
'count' => count($polls),
|
'count' => count($polls),
|
||||||
'polls' => $titles,
|
'titles' => $titles,
|
||||||
|
'polls' => $polls,
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue