This makes no sense. This cookbook entry is about adding a **Twig** global variable. It won't be available in PHP templates.