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.
1
vote
1answer
31 views
Basic PHP MVC setup for form submissions
I'd like your thoughts on this basic implementation of MVC. The view outputs a form, and when the page is loaded, the controller checks for a form submission and then updates the model accordingly. ...
0
votes
1answer
72 views
PHP MVC: how to do $_POST the right way
I am not sure if I am doing right on how to handle $_POST data in MVC pattern. Below is my attempt. Am I doing it right?
// Dummy $_POST data,
$_POST = array(
"menu" => array(
...
2
votes
1answer
56 views
How to put XML results in the MVC pattern?
I have been writing PHP programs in the MVC pattern for quite some time. But I am not sure if I am doing it right.
For instance, I have this PHP file that prints a result in XML, and I put this file ...
1
vote
0answers
37 views
Tiny MVC - Handling validation / sanitization in a model
I was told to post this here - original post.
I'm fairly new to MVC concepts and PHP input validation.
I'm open to all input, but I'm largely wanting to know if the following:
Follows the MVC ...
0
votes
0answers
7 views
Model Input Sanitation / Validation - Is this acceptable?
I'm fairly new to MVC concepts and PHP input validation.
I'm wanting to know if the following:
Follows the MVC pattern correctly - if not, how can I improve it?
Has any huge apparent security ...
0
votes
1answer
58 views
Javascript MVC Design Feedback
I would like to share my design of mvc via js.
What do you think about it? I tried to not use any mvc framework but i want to get clear structure and a decoupled organisation.
Next step for me is ...
0
votes
0answers
132 views
TicTacToe - introduction to MVC pattern
After reading about MVC pattern in Head First Design Patterns, I've decided to write a TicTacToe app.
I will not reveal the source code of the classes Matrix, Dimension, and Size because they do not ...
0
votes
1answer
172 views
Review: First attempt at MVC javascript pattern
I would really appreciate a review of my interpretation of MVC here.
http://jsfiddle.net/zuVkt/
It's as bare bones and clear as possible, i've based it on some in-depth reading but I don't know if I ...
1
vote
3answers
125 views
Look over my code for PDO and MVC
I'm building this website with PDO and Pattern MVC. I'm currently working on the login page and would like to know if this structure is correct for MVC pattern. I'd also like your opinions and ...
1
vote
1answer
82 views
Which parts of my code are redundant?
Hey guys I have the following code, which i kind of just put together sloppily since I'm not really familiar with Razor/html... but nonetheless it does what I want it to do, which is basically passing ...
2
votes
1answer
100 views
Structure pages mvc + oop
I am developing a website and I want to use PDO and MVC.
Before, I was coding in procedural MySQL, but I'm starting to understand the object-oriented programming.
My problem is the following:
If I ...
0
votes
0answers
121 views
First introduction to MVC
Sorry for my English.
Recently I launched familiarity with it. I'm not sure that I fully understand this pattern. I wrote a simple application that used MVC. Please criticize my approach to the use ...
0
votes
0answers
18 views
Nested routes and proper place for a function?
I have a rails app and in it I have two models, widget and votes. Votes are used to keep track of the desirability of a widget. So in my models I have:
class Vote < ActiveRecord::Base
...
0
votes
0answers
112 views
Java. Combining a JFrame, AbstractTableModel, and SQL Query
Building on my previous questions. I've managed to make a GUI that queries a SQL database and displays the result in a table. Christ, it's a lot of work for such a simple activity.
The code below ...
1
vote
1answer
56 views
Decoupling MVC model methods in java
I have a basic swing application that I am trying to develop using MVC structure.
The principal class in the model connects to a derby database and retrieves values from columns and stores them in ...