For a long time the only thing that future teachers were taught in this area was to "don't smile until Christmas." That was it. No classes on the topic, no units on it, nothing.
If you hear someone giving this advice, no matter who it may be, be sure to ignore it. Have an organized discipline plan that you can run without having to use emotion. Do that and you can smile all you want.