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
2 views

Where have I to define my entities?

i am working an my own PHP mvc framework. Now I want to know where to get and specify my entities. An example, should I do this: class User_Model extends Model { private $name; public getName() {} ...
1
vote
2answers
70 views

What is the best way to get the child class name for use in a parent class

I am currently trying to implement a very simple MVC framework as a way of helping me understand how they work. My base controller class has 2 properties, a model and a view. All controllers have a ...
1
vote
2answers
28 views

MVC : Does code to save data is session or cache belongs in controller?

I'm a bit confused if saving the information to session code below, belongs in the controller action as shown below or should it be part of my Model? I would add that I have other controller methods ...
1
vote
0answers
50 views

Delos MVC PHP Framework

I 've been working in PHP since almost three years ago. In these time i builded a framework as base for my projects. I want it to be improved, and which other best option there are that use ...
1
vote
1answer
48 views

REST-ish API Account Controller - how's it look?

I still have to implement api keys for client auth, but so far this is what I have for users. This was built using WebAPI and SimpleMembership with Forms Auth: Is Authenticated: public class ...
4
votes
2answers
107 views

Spreading out model across multiple classes a good idea?

Background My project performs software application management; it covers in-app purchasing, product provisioning, account management, etc. I've recently been tasked to add a cost reporting ...
0
votes
1answer
59 views

how do I encapsulate this List<Message> properly?

I know that Swing isn't true MVC: Using this modified MVC helps to more completely decouple the model from the view. Leaving aside the veracity of the above claim, the problem I run into is ...
2
votes
1answer
76 views

Foo - Control | Naming conventions update

The code below is for modern browsers only. Naming conventions are as follows: m or M - Model v or V - View c or C - Controller ...
1
vote
0answers
112 views

How to structure a (true) MVC application?

I am working on a PHP project (the code should also be readable by non PHP people though) which I am trying to setup using a true MVC structure. Or at least as closed as I can. What I am currently ...
1
vote
1answer
107 views

How to update my Swing JTable dynamically. MVC Pattern

I have created a program using a version of MVC architecture. The purpose of the code is to scrape the h1 titles of a list of webpages and to return the results to a JTable. So far I have the ...
0
votes
1answer
41 views

CodeIgniter Model - Correct/Secure Usage?

I'm working on my first large CodeIgniter project (and one of my first MVC projects), and I want to get some feedback on the techniques I've used so far in one of my models. Here's the code: <?php ...
0
votes
2answers
56 views

along right lines for an application class for mvc?

Please could you review and critic my code and logic. If this is along the right lines for an application mvc class or not. Thanks namespace dh_mvc2; use dh_mvc2\dispatchers\Base_Dispatcher; use ...
1
vote
1answer
109 views

Looking for architectural feedback on my PHP MVC Framework [closed]

I wrote this a while back: https://github.com/chintanparikh/Serene I'm looking for feedback on the architecture/Object Oriented Design of the framework. What I thought was neat: In the COre folder, ...
1
vote
1answer
70 views

File loop and logic in controller of view header?

I have the following in the header.php file which is included in all of my views: $dh = opendir(Vs.get_class($this).'/js') ; while($script = readdir($dh)) { if(!is_dir($script)) { ...
0
votes
2answers
79 views

PHP MVC simple sign up form review? Please be honest :)

I have tried to build my first MVC sign up form here is the code. Here is the user controller method register. public function register() { if($this->isPost()) { $user = new ...

1 2 3 4 5 7
15 30 50 per page