I am writing application in PHP (+ MySQL database), but it gonna be mainly AJAX aplication. So, I am wondering, how to create frontend? Frontend also in MVC? Is it possible?
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.
Unfortunately it is still not a good idea to rely on JavaScript being enabled, so having JavaScript applications “fail” gracefully is preferred.
I would recommend creating a basic PHP/HTML click-and-reload application first, which would allow dinosaurs to use the basic features of the site, and then build a JavaScript/AJAX application on top of that, which would enhance the base application.
As to the MVC question: It is definitively possible to create a JavaScript MVC front-end. I tried it myself a few months ago and it worked great. Just keep a close eye on the scope of your function calls. They can get away from you if you aren’t careful 😛