phpFramewerk Control Flows
In phpFramewerk we handle control flows as follows:
- The user triggered events with the user interface such as clicks or presses a button.
- A controller handles the request from the user interface by evaluate
the $_GET[cmd] or $_POST[cmd] variable. - 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). - The controller accesses the view to render an appropriate response
(this is where the data from the model displayed within the HTML). - The user interface waits for further events triggered by the users.