apply for visa before getting married.
if you get married before, they will not give visa easily, although sometimes they do.
if you apply for visa after you get married, she will have to mention that she is married, and she simply wants to go study in the meantime, and she will leave canada if...