The teacher needs to make sure the composition of her/his lesson is interesting enough to keep the students interested in the first place, that way they will earn the respect of their students, and so help to maintain discipline.
Didn't find the answer you were looking for?