I was thinking of using mvc pattern while designing this app. How can I use mvc here ? The model will be stored in mysql but what will be the controller and what will be the view here ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Firstly: model won’t be stored in MySQL database – the data will, and model != database [sometimes it is very related, but it is not equal overall]. Your controllers will probably handle such things like:
The view would be HTML page, but probably also some external app or embedded JS that people can place in their pages.