Friday, July 20, 2007

phpFramewerk Control Flows

In phpFramewerk we handle control flows as follows:


  1. The user triggered events with the user interface such as clicks or presses a button.

  2. A controller handles the request from the user interface by evaluate

    the $_GET[cmd] or $_POST[cmd] variable.

  3. The controller processes the event in a way appropriate to the user's action
    (this is where controller accesses the model such as Add,Read,Edit and Delete).

  4. The controller accesses the view to render an appropriate response
    (this is where the data from the model displayed within the HTML).

  5. The user interface waits for further events triggered by the users.