They applied a settlement visa but it was refused and the Home Office wanted her to go back to Phils to apply from there.
if you marry in the uk you need entry clearance to stay here, and it can only be obtained in the country where you are a legal resident(unless your married to a european in the uk ). sure you can try from within the UK but be prepared for a very long wait and refusal.