Tag: Twig

PHP 5.3.20 and 5.4.10 released and available on ServerGrove!

Yesterday the PHP development team released new versions of PHP 5.3.20 and 5.4.10. These releases fix over 15 bugs. We have updated our OS packages with these new versions. Here are instructions on how to use (or upgrade) our Ubuntu/Debian or CentOS PHP packages. Other Extensions News – Mongo: We updated the Mongo PHP extension with the new version 1.3.2. – Twig: We have […]

December 21 / 2012
Author Pablo
Category PHP
Comments No Comments
Tags , ,

New TLDs

NewTLDs

Upcoming Conferences

CraftingTour

PHP New Zealand









Generate URLs from within a Twig Extension with Symfony2

It’s possible to generate a URL from within a Twig extension in a Symfony2 application. To do this, you need to have access to the Router. If you have a custom Twig extension, this means that you’ll need to inject the router to the extension. Thanks to the Dependency Injection this is very easy to […]

May 13 / 2012
Author Pablo
Category PHP, Symfony, Tutorials
Comments No Comments
Tags , ,

New TLDs

NewTLDs

Upcoming Conferences

CraftingTour

PHP New Zealand