CGIV-3171: Need to be able to set PHP directives

Revert "removed directives from templates"
This reverts commit 45b926992e0f05da0bd17f1fcaa19e513f29ae67.