title: Zend framework (zf2) how the input values are passed to the model?
body: <p>This may be a very simple question about ZF2, but I can't get my head around it. So please bear with me.</p>
  
  <p>Suppose I create a user registration form. It has 2 inputs: username and password. In the model, I create a class User that has $username and $password variables, and the setters + getters for the two variables. </p>
  
  <p>My question is how to pass what a user writes into the HTML inputs to the corresponding setters? Obviously, it has to do with the $_POST array. But how is it done internally in ZF2? What should I use to pass the username input to the actual $username variable?</p>