Detection of pseudoscalar and scalar mesons at DAFNE with KLOE