1)In case of cooking oil fire,,immediately shut off the heat source.
2)Pour some water on to a cloth and rinse out the excess water.
3)Put the cloth on the pan or burning substance to control the fire.
4) Wait till the burning substance have been completely cooled.
This way you can extinguish oil fires!