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
1answer
42 views

Controller method to update properties of a request

I have a view that displays details of a work order request submitted by a user. As far as security and database querying is concerned, which one of the following options would be better if I'm going ...
3
votes
0answers
44 views

Using Identity to create user administration page

I'm developing an ASP.Net web application, using MVC 5. This application authenticates via LDAP and will assign an Identity Role of "Admin" to a designated user. The Admin user will be able to go to ...
1
vote
0answers
42 views

Quiz MVC application

I am developing a Quiz module in which a user can create a quiz based on a large set of questions grouped on categories. But he can also repeat a certain quiz, or view it again read only. The ...
4
votes
1answer
49 views

Reimplemented QAbstractTableModel::setData

I have subclassed Qt QAbstractTableModel with QJsonDocument as data source which I have reimplemented the ...
1
vote
1answer
38 views

Laravel controller to update appointment requests

My question/refactor is similar to what is found here: Laravel controller for form validation skinny However, I feel that the answer is for 5.0 and not 5.2. This question does not pertain only to one ...
1
vote
1answer
82 views

Dynamic Routing PHP MVC

I'm creating a simple MVC framework for a new version of my website I'm working on. Currently I have simple routing, such as /about-us etc ... I've just implemented 'my version' of dynamic routing. I ...
1
vote
1answer
32 views

index.php implementation

I'm writing a MVC app, I've put effort into writing index.php since it must be the entrance point (like main for C and Java) imho. I would like to ensure if someone who were to work on this file ...
1
vote
4answers
103 views

PHP MVC implementation without a framework

I've been using PHP for years and in every project I've ever done I've included the HTML, PHP, SQL etc ... in the same page. Upon looking through Github at large projects like WordPress and MediaWiki ...
0
votes
0answers
21 views

Decouple resource that only lists items owned by logged user

Both methods works just fine, but I would like people's opinion on whether I'm facing this the wrong way. JWTAuth returns an ...
7
votes
3answers
112 views

Revised - Game of Fifteen

This is a revised version of a previous post. I attempted to address each aspect of the feedback provided. The key changes are as follows: Replace the deprecated ...
1
vote
0answers
32 views

Correct Swift Model for JSON

I am working on a program that would generate swift classes/ structures for JSON file contents. The link to the application is Json2Model in case you want to contribute directly. I do not know a ...
0
votes
1answer
52 views

Initial stages of MVP, is the bootstrap file efficient coding

I am attempting to put my new OOP skills to the test and am eventually going to build a simple OOP login/registration system. However as I am making use of OOP I have decided to make my own simple ...
1
vote
0answers
23 views

Developing a Feed Reader in the MVC Architecture are there better posabilities?

I'm redisigning my old Feed Reader APP with the MVC architecture, to understand the OOP better, currently there is just registration functionallity implemented, ...urrently workiing on the session ...
1
vote
1answer
52 views

Simple router for updating users

I need to know if I am going in the right direction with my code so far. I am really trying hard to transition from procedural, page-based programming into OOP MVC. So far I have written a simple ...
6
votes
1answer
99 views

Business logic to interact with Data access layer with exceptional handling

The code below is the BLL and the DAL logic for the form submission with multiple pages. A form will have more than one page, will have a button on every page until it reaches the final submission. ...
0
votes
0answers
25 views

Model controller relation

I am creating a PHP app in MVC (no framework). I am having a difficult time understanding how the Model and the Controller communicate in an optimal manner. User.php ...
3
votes
0answers
25 views

One user profile for company and person

I'm creating a web page which has two types of users with very similar permissions: Person and Company. The main difference is ...
1
vote
0answers
12 views

Mail service implementation using Razor engine a MailMessage

This is a very basic Mailer service that I put together after finding out that MVC Mailer doesn't play nice with MVC 5. ...
0
votes
1answer
41 views

Accessing Models Directly Through AJAX [closed]

I was thinking about how to handle AJAX requests in a MVC environment in PHP in a easy way. What I've come up is (without showing you the backend code): ...
1
vote
1answer
30 views

Database connection in MVC model

I followed the tutorial Build a PHP MVC Application and have implemented a database connection. I made a seperate database connection class and I call it in the controller. It works, but now I have ...
1
vote
2answers
47 views

Method to get user information (OOP / MVC approach)

I coded a small user script with PHP. I'm improving the script, learning from my mistakes. I recently learned about object oriented programming and wrote 2 big god classes (user class and message ...
3
votes
1answer
62 views

Simple PHP MVC framework

I recently wrote this PHP MVC framework. Would like your review. index.php ...
10
votes
1answer
120 views

ASP controller for tracking equipment

This was originally posted here. I'm hoping Code Review will be a little more helpful in giving me a concrete direction. I've been working on a project based off of this tutorial. Unfortunately, ...
0
votes
0answers
34 views

Updated version of app which does CRUD on a database table

A while ago I created my first Java application. I tried to follow the MVC pattern. I posted my code for review and with the answers I got I did more research and rewrote my code. I gave every ...
1
vote
1answer
52 views

ASP.NET C# MVC thin controller for file validation with service layer

My name is Matt and I have a fat controller problem. In truth I have limited experience of MVC and I'm trying to learn how to organise my code better so it's more testable and more maintainable. Here'...
4
votes
1answer
69 views

Simple Java RSS reader

As a study project I was supposed to write an RSS reader in Java (I used Swing to make GUI) using MVC pattern. I finished it, but it's not quite polished yet (still gotta write these javadocs and add ...
3
votes
1answer
54 views

Model for math facts

I've written a model for an app that generates math facts kids have to solve by evaluating the operation and the difficulty you pass to it at initialization. I don't like how I am repeating the code ...
1
vote
1answer
115 views

Sorting a list by country name

A couple of weeks ago a company sent me this coding challenge: Please write a PHP web application and send it back to me as zip file: Which waits for a user action, like clicking buttons. ...
2
votes
1answer
84 views

JavaFX app which does CRUD on a database table

I created my first java application for a college assignment. I tried my best to design my application using best practices of MVC design patterns. I have read about it on Stack Overflow and other ...
0
votes
0answers
41 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
112 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
55 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
27 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
94 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
36 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
64 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
50 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
73 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
91 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 ...
3
votes
2answers
73 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 ...
4
votes
0answers
96 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
29 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
80 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 ...
2
votes
2answers
94 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
70 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
140 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
31 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
306 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
37 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
94 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 ...