getting field rendering into php