Interesting, noted for future reading/watching.Much thanks for the links Andy, especially the video.
I was going to commission a custom mysql database program, think I'll hold off a bit longer.![]()
I just did. No.Did you ever considering writing XenForo using Ruby on Rails?![]()
Any particular reason? Not that I'm advocating RoR, but you sound somewhat vehement.I just did. No.
Actually no. The HTML, CSS and JS together just play a small part in how you go representing a View in an MVC application. If the view is represented in html (as opposed to rss and json):HTML/CSS/JavaScript is essentially a model-view-controller architecture if you think about it.
HTML = model, CSS = view, JS = controller![]()
You are correct when thinking about it in the scope of a web application, yes (all the HTML, CSS, and JS are the output to the browser, and thus the view).Actually no. The HTML, CSS and JS together just play a small part in how you go representing a View in an MVC application. If the view is represented in html (as opposed to rss and json):
Correct me if I'm wrong, please.
- (x)HTML is the actual markup
- CSS defines the presentation of the view
- JS defines the behavior of the view
![]()
I don't think there are any threads on xf dedicated to MVC. Here are two that are somewhat related, though:Does anyone have links to existing mvc threads on xf? So I could read more?
Indeed. And based on what data you are sharing with that user, or what permissions that user has, will significantly affect how much data is exposed.feldon30, you forgot an important component there, right at the beginning of your 'MVC way', which is that you also need a function that interprets a user request, and passes it on to your data retrieval function. Your data retrieval function doesn't know or care how it's been requested.
I believe the attempts to fit HTML, CSS, and JavaScript into MVC are not something which originated with Kier or Mike. There are some parallels, I believe first and foremost, MVC as described here applies to the PHP code. If the JavaScript were really the controller, then a ton of information which is never displayed would be pushed to the browser and then filtered out by Javascript or CSS. Not a good setup.Brandon_R said:I would have to say the HTML and the CSS are the view and the javascript is the controller. There is not model here.
Developers argue ad nauseum about what bit is the model and what is the controller and bla bla. In the end it's unimportant, provided the principles of abstraction and encapsulation are enshrined in the design.I would have to say the HTML and the CSS are the view and the javascript is the controller. There is not model here.
We use essential cookies to make this site work, and optional cookies to enhance your experience.