Add missing namespaces

PHP functions were added to this template but not the PHP namespace.
This broke the representation and by adding these namespaces all content
is shown again.