If you have or had a child how would you or how did you discipline them when they were younger?

From my years with kids (from working part time at a daycare to the church daycare/nursery) I've seen parents spank their children, I've also seen some yell at their children while others either talked to them gently or ignored their behavior completely. There's apparently so many ways but which way was the right way and which is the wrong way.
If you have or had a child how would you or how did you discipline them when they were younger?
Post Opinion