Study of the decay φ→π0π0γ with the KLOE detector