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

0
votes
0answers
29 views

PHP get a view object for a polymorphic model

I need to render polymorphic models in different situations. Model's base class: ...
0
votes
0answers
33 views

Simple repository for a small/medium sized asp.net mvc site. Using entity framework

I am about to start a small/medium sized project. I am by no means a software architect. But i tend to question every move i make at times. Since i want to do things correct. I found a way to ...
1
vote
0answers
78 views

PHP MVC Architecture Implementation

as a learning project i have decided to try and implement/build my own take on a PHP MVC framework. I realise there are alot of good PHP frameworks out there but rather than learning how to use a ...
1
vote
1answer
39 views

Design/Architecture for MVC WinForms Dialog Control/Use

All I have built an MVC WinForms application where Views are blind and deaf of their controllers. To facilitate this I have used Ninject as my Dependency Injection (DI) Inversion of Control (IoC) ...
1
vote
0answers
24 views

Save Custom Product Kit using Web Application

How far do I break down individual tasks within a typical scenario of "Web application reacts to user input"? For example, in the case below, say a scenario is "User submits a form, causing user data ...
3
votes
1answer
72 views

Basic MVC Framework

I want to improve my skills so i startet a very basic MVC framework. Its my first MVC based Framework. Index I rewrited all requests through index.php and the ...
1
vote
0answers
32 views

Workout tracker and performance analyzer app

With this iOS app, the user can create workouts (e.g., Squat, Bench Press, etc) and then track their progress including current weight and number of weights. Performance calculations are also ...
2
votes
0answers
36 views

PHP routing system

I made a routing system for PHP inspired by Symfony's router composed of a few classes. First I am using Symfony's HTTP Foundations component. Then, I am emulating the classes in the routing ...
3
votes
2answers
42 views

A PHP MVC controller to display a form and add an item to the database

I am creating a controller that will display a form and once the form has been submitted to store the item in the database. After the item has been stored the user will be redirected back to the main ...
3
votes
1answer
72 views

Java MVC TicTacToe - follow-up

Here is my previous question: Java Tic-Tac-Toe game (implemented through MVC) I'm reposting again because I made a lot of changes to the code. I wasn't able to implement everything as I don't know ...
2
votes
2answers
75 views

Tic Tac Toe C++ MVC design

This is my new version of my Tic Tac Toe game written in C++. I tried to follow community advice by separating I/O from the game logic and view (MCV). The code works great, and I am looking to see if ...
2
votes
2answers
62 views

Fetching a number of data tables from a stored procedure

Within a method, this code is calling a SPROC that is doing a 'select *' from 9 different views. This method then goes on to access the returned DataTableCollection ...
3
votes
0answers
74 views

MVC and Subject-Observer pattern in C++ & QT

I am trying to implement the MVC pattern in C++ & QT, similar to the question here: Other MVC Questions The program has 2 line edits: mHexLineEdit mDecLineEdit 3 buttons ...
0
votes
0answers
26 views

UltraLight JavaScript MVC Framework

Edit. When I originally posted this the project's GitHub page was severely lacking details. I've streamlined and improved it to better describe how the project works. The framework since has gone ...
2
votes
3answers
77 views

Notify owner of post and other commenters

I have a rails4 app. When a user comments on a post it should send a notification to all the guys who commented on the post and to the post creator. I have a working method in the controller, but it's ...
1
vote
2answers
74 views

GUI Caesar Cipher with model-view-controller

I created a Caesar Cipher Program in Tkinter, to help me learn the Model-View-Controller concepts and Tkinter in general. The code works, but it is a mess, and I want some help on cleaning it up, ...
3
votes
1answer
68 views

Basic structure for interactive single window application

This is the basic structure I usually end up with whenever I'm writing a simple application. More recently I've learned about singletons and have started to incorporate them into my design, but other ...
1
vote
1answer
99 views

Right usage of ViewModels in MVC

I'm new to MVC and i'm having some difficulty on understanding the proper usage of ViewModels and Controllers. I have this ...
0
votes
0answers
29 views

Render HTML/JS with Values for jQuery Modal Boxes

I have some code that I use to render the template + values for the HTML that makes up jQuery Modal Boxes in my code. ...
3
votes
1answer
171 views

Use of Ninject as an IoC container in a WinForms MVC application

I am a relatively experienced WPF developer who has had good exposure to MVVM. I have been developing legacy WinForms applications for a while and have recently been asked to fully re-write a large ...
0
votes
1answer
34 views

Simple MVC - Displaying a Customer

I would like to ask about possible improvement of this code. I have created very simple code using MVC pattern. Is there any logic or anything to change? I tried to keep MVC idea. This is model, ...
2
votes
1answer
67 views

Simple calculator in PHP utilizing MVC

I have been struggling with understanding Model, View, Service, Controller architecture and wrote some code. Is my Model class the Model part of MVC (did I define ...
3
votes
1answer
56 views

Student information demo in Swing using MVC

I've followed several guides on how to implement MVC in Java, and so far I've come up with the classes shown below. From my understanding, MVC follows these guidelines. The Model should be ...
2
votes
1answer
70 views

OPP Sign In/Out procedure in PHP

As a self-taught student of Web-Development and Web Technologies, I created a simple sign in/out form in PHP, just for practice purposes and some fun! I read the O'reilly's book about PHP and I found ...
0
votes
0answers
26 views

Applying MVC design pattern to a Java SWING application

As the title says, for the last couple of hours, I've been trying to implement MVC design pattern into a project I've worked for a couple of days now. It took more time than expected and since the ...
4
votes
1answer
46 views

Using basic HTML to render and check

I am a newbie and I am using basic HTML to render and check. No JSON at the moment. With that said, I’m having a hard time conceptualizing organization of a group of matching series (e.g. a series ...
3
votes
2answers
388 views

Medical diagnosis selector

Alright, so my code is 'all over' and missing some fundamentals as regarding to the MVC design pattern.I should separate my concerns and I don't have a model layer and i'm clueless to how to implement ...
3
votes
2answers
137 views

Using viewmodel create comper and edit

I have this really long httppost action results that I add and update 3 db tables I think it's too long and can get shorter and smarter. ...
1
vote
0answers
51 views

MVC ViewModel interface

IViewModel.cs - Core view model interface. Allows for Paging results and serializing to a RouteValueDictionary(RVD). ...
1
vote
0answers
40 views

Use of HTML (view) in a constructor

I have this constructor (from a Service) where I'm setting a few variables, but two of them include HTML. Is there a best way to set those values, maybe by creating a method in the class to set them? ...
0
votes
1answer
69 views

Laravel 5 controller to list appointments by date range and by label

I am starting to get into OOP using PHP and MVC. I just want to know if this code is good practice. Is this how I should be using my controller and model, in its simplest form? ...
2
votes
1answer
51 views

Validating user access to a function

I was reviewing the following code block and noticed there was validation check at the top. The 3rd line in the function checks if the invoice belongs to the logged in customer. I am wondering ...
3
votes
1answer
185 views

Creating an object-oriented router class in PHP

On my way to learn OOP, I am developing a little CMS using the MVC pattern. I would like to have some feedback about my router class, mostly about if I am correctly using OOP. Right now, I have a ...
3
votes
1answer
51 views

Generic Object Editing Classes with Controller, ViewModelProvider and DBUpdater

I am beginning to use generics and would like feedback on the following set of classes that will serve as the basis for an app that contains a large number of basic CRUD-y entities. I have used ...
3
votes
1answer
135 views

Utilizing Areas to handle subdomains with shared state/resources

I am currently working on a side-project and have the basic foundation and architecture I want in place for the site. I wanted to get your opinion and thoughts on my current practices and methods ...
3
votes
0answers
35 views

RESTful API for serving videos to a client

I'm building an app that serves videos to a front end client. My stack is Express/Angular/SQLite. The db doesn't hold users, only root. I'm concerned that my controllers are too hardcoded, but I'm ...
4
votes
2answers
74 views

First MVC Router

I'm learning the mvc pattern and today I finished my first mvc routing class. Hope you can give me some tipps and improvements. Router.php ...
3
votes
2answers
133 views

Keeping data processing out of controllers

I would like to start by mentioning that I am LAMP stack guy who happens to be making my first ever .NET C# web app and I'm seeking general advises for best practices and to see how more experienced ...
5
votes
2answers
91 views

Rails guestbook with new, index, and Kaminari pagination in the same method

I created a guestbook that on one page displays both the form for a new entry and all of the entries that have been created so far. I am trying to use Kaminari for pagination for the entries. Right ...
3
votes
0answers
68 views

Stylishly saving source

Simple tool to save a web page's source. A result of trying to learn and apply an MVC approach. The FXML is generated via Scene Builder, but included for completion. I welcome any general feedback on ...
4
votes
1answer
126 views

Optimize Data Sending/Querying to Parse Swift iOS

I have a swift method that I'm using to update Parse in the backend when the button is tapped. Votes are being updated: The method acts as a voting system, incrementing a label every time it's tapped. ...
3
votes
1answer
67 views

MVC flash card application

I am trying to learn how to build a very basic MVC structure before jumping on rails and other frameworks. I am working from a .txt file, and I organized a project into four parts: a model, a view, a ...
3
votes
1answer
138 views

Web API Interview Practical Test

A week ago, I applied for a 'Software Engineering Internship' at one of the company. Since I know C++, C#, Java well and have worked on couple of ASP.NET MVC projects with MS SQL server before, I knew ...
6
votes
1answer
1k views

Identity OAuth implementation with Owin

I am building an MVC 5 application using code-first Entity Framework 6 and a customised ASP.NET Identity model for authentication. I will only be authenticating against external OAuth providers ...
0
votes
1answer
45 views

Simple and reusable system for user registration and tracking and auto-updates - follow-up

This is a follow up question of this one. Since the original question was posted, it has turned out that in some cases I want the code to be synchronous and in others to be async. I have updated the ...
3
votes
0answers
62 views

Cat Clicker MVC

I'm training my coding and wish you guys to see how my code is. I made a cat clicker based on the MVC pattern. Basically it shows a list of cats and when you click a cat name it shows an image, and ...
0
votes
1answer
72 views

Uploading photos: Domain Model and Repository classes

In the database, I have a table with name photographs with the following columns: id ...
5
votes
2answers
240 views

Links controller in MVC N-layer architecture

I have a common issue that I face in my applications (because I don't know any better) and I want to improve. This is my usual structure: Project.UI (MVC Project) Project.BLL (Class Lib) ...
3
votes
4answers
167 views

Website news message edit panel

The explanation I'm making a website for a hypothetical theatre to get a better feel of MVC web-applications in ASP.net. The idea is that there are newsmessages that are displayed on the homepage, ...
1
vote
1answer
93 views

Monkey patch allowing virtual controller methods in PHP MVC application

I'm in the process of building a soon to be opensource CMS. 100% MVC. The basic idea is that a plugin should be able to add pages (read: methods) to a given controller, without needing to instantiate ...