Tagged Questions

Model–View–Controller (MVC) is a design pattern for computer user interfaces that divides an application into three areas of responsibility. It is often applied to websites.

learn more… | top users | synonyms

2
votes
2answers
69 views

A PHP MVC working with Mustache (and now nested templates!)

So I try this site for the first time, I hope I'm not off-topic [as I also have an issue in my code]=> Not anymore but I'd love some feedback about this code that I'm editing and shortening now. ...
2
votes
1answer
55 views

Can someone more experienced with MVC routers, review my RequestRouter::dispatch() and Request::parseURI() methods?

I'm hoping that the more experienced devs here can help me improve these methods. I'm building a basic MVC framework for myself (as a learning project,) and I'd really appreciate your insights. Things ...
10
votes
0answers
141 views

MVC in XNA game development - Am I doing it right? Rudimentary MVC GameEngine

I asked that question at StackOverflow, but I've been told, that SO is not the right place for code reviews and I've been pointed here. I've read a lot about using MVC in game development and it ...
4
votes
1answer
72 views

Pubsub implementation using a Singleton

Is using a singleton to represent a Publish-subscribe message system a bad design choice? Background Im thinking about writing a pubsub implementation (using the singleton pattern) to allow for ...
3
votes
1answer
149 views

Is this a correct implementation of MVC pattern for form validation (php)?

Before going out and learning a full fledged framework I'm trying to understand the MVC pattern coding basic stuff, at the moment I'm testing with MVC applied to form validation. After reading a good ...
2
votes
1answer
86 views

Semi-Repost: How can I improve my PHP model for my html5/js mobile app?

I was advised, rightfully so, to simplify my question. I am posting the a section of the model of my application. Any/all feedback would be very helpful as I am trying to build my PHP skills, but I ...
1
vote
2answers
191 views

Need help in MVC Winform example project to add a record into the DB [closed]

I want to learn MVC pattern using winforms and I have read some tutorial to understand. Now, i'm working on my own example to just add a customer records in a database using MVC pattern. The ...
0
votes
2answers
125 views

How can I improve my PHP backend for html5/js mobile app?

I would really appreciate any feedback on the back-end of my mobile application. I tried to keep an MVC pattern, where I considered the app to be my view. Perhaps an REST framework would have been ...
1
vote
1answer
57 views

Are these MySQL Abstraction Classes safe from SQL Injection? Can they be made safe?

I was looking at this website: http://www.devshed.com/c/a/MySQL/Creating-User-Models-in-PHP-and-MySQL/1/ and http://www.devshed.com/c/a/MySQL/Creating-User-Models-in-PHP-and-MySQL/2/ In the first ...
1
vote
1answer
134 views

MVC Structured CMS

I'm creating a MVC structured content management system as both a means to learn better OOP and redesign my tacky website to me more modular and simplistic. My aim is to approach everything with ...
1
vote
2answers
58 views

isinstance as an alternative to polymorphism

I have a program that displays colorful shapes to the user. It is designed so that it is easy to add new shapes, and add new kinds of views. Currently, I have only two shapes, and a single text-based ...
4
votes
2answers
354 views

ASP.NET MVC using an N-Tier Model and DDD

Any comments are welcome. However I'd like to call specific attention to my... interpretation of the N-Tier application architecture and how I'm consuming data. Note that the namespacing and inline ...
1
vote
0answers
78 views

Amazon s3 pass through controller

Some background, I am building a website that uses amazon s3 to host its image (and other) files. I required that images displayed on the website look like they come from my site and not from amazon ...
0
votes
1answer
33 views

Is there a better way to update fields in an web app?

This is the stripped down version of my update action for a Posts (blog post) controller: Posts.update = function(req, res){ _.extend(req.post, { title: req.body.title , author: ...
1
vote
1answer
248 views

Routing in MVC with PHP

I am in the progress of creating a MVC structured website. I've opted to make my own instead of using pre-constructed MVC systems as a way to teach myself better coding and understand how applications ...

1 2 3 4
15 30 50 per page