flush() and path() now available from within PHP templates