convert ctp to php "REPORTS"