This can only be done if the wife is actually working for the company. You cannot pay a spouse a salary just to avoid tax.
Note that I referred to circumstances where the spouse is a director.
Perfectly acceptable to pay the spouse (say) €25k per annum in his/her capacity as a director.