Symfony2’s a good server-side framework. Angular’s a good front-end framework. What happens if you want to use them together?
It’s certainly possible, but if you want them in one project there are two complications: templates and routes.
Symfony2’s a good server-side framework. Angular’s a good front-end framework. What happens if you want to use them together?
It’s certainly possible, but if you want them in one project there are two complications: templates and routes.
I probably should have seen this coming, but when introducing Twig to a non-Symfony project, it hadn’t occurred to me to expect the same permissions dance that Symfony cover helpfully in their setup guide.
Having built a shiny new system that uses the same template cache for web requests (handled by the Apache user) and emailed reports (handled by another user via cron / command-line invocation), of course I hit exactly the same problem that those steps avoid. If you share any templates across the two users’ remits, eventually one will want to write to an existing cache file generated by the other user. It won’t have write permission, and Twig will freak out: