I use Symfony 1.4.11. And I need to add custom <title></title>
for each page.In frontend I use slots (here) But I need also to do same in my backend... How to do this? Use generator.yml?
Asked
Active
Viewed 198 times
0

denys281
- 2,004
- 2
- 19
- 38
1 Answers
3
You can use slots. Another way it to use config files if the page titles are static. Eg:
apps/frontend/modules/[module name]/config/view.yml
indexSuccess:
metas:
title: Your custom page title here

deepwell
- 20,195
- 10
- 33
- 39
-
thank you! but how it use in backend? I have **Template: autoSfGuardUser … indexSuccess.php** – denys281 Jun 24 '11 at 08:19
-
Same way as in the frontend. create a apps/backend/modules/[module name]/config directory, and add a view.yml file to it. – deepwell Jun 24 '11 at 16:53
-
For internationalization, use this: http://stackoverflow.com/questions/4714034/how-to-internationalize-metas-such-as-title-in-view-yml – jsgoupil Jul 01 '11 at 16:59