MVC (Model-View-Controller) is a software architecture pattern that enforces separation of concerns.

learn more… | top users | synonyms

1
vote
1answer
141 views

Is this an MVC framework?

I have built a framework for my applications that has been working well, and I have always referred to it in my mind as an MVC. However, after reading some more on what an MVC is (not that I didn't to ...
0
votes
2answers
50 views

Is it 'safe' to expect myClasses to agree not to only call package Scope methods from other Package scope methods?

The questions says it all, but a quick overview of the situation. I'm creating a Model which contains classes (all inherriting myObject) which have a large amount of interconnection. I want the ...
4
votes
5answers
328 views

Most MVC-strict php framework

I have been trying to wrap my head around MVC pattern for about 6 months.I've read tons of articles, Q&A, and blog posts about MVC and HMVC patterns, but I just simply don't get it 100%. I tried ...
3
votes
1answer
162 views

Is MVC the optimal pattern to build a RESTful web service?

Not being a Java practitioner, I recently came to learn about the JAX-RS specification and Apache CXF framework. While still wrapping my head around all these things, I also read the this question on ...
0
votes
0answers
53 views

How to ensure only one object for each item in my state exists?

I am refactoring an existing system heavily, merging some seperate programs and throwing in a proper MVC concept; working on the Model now. My current system sits in the middle, one of a few views on ...
4
votes
6answers
203 views

Is MVC ever considered/applied system-wide?

I was having a discussion with a colleague and he bought up the topic of MVC and the use of ViewModels in ASP.NET MVC. The discussion was that, in an n-layer architecture, the UI, Business Layer and ...
3
votes
1answer
134 views

Should website frontends be rendered in client-side or server-side?

I've been talking to a colleague that comes from AS3 to the HTML world. He has created a small website (there are apparently no dynamic contents) following the no-flash rules for his very first time, ...
1
vote
2answers
106 views

Where's the separation between Presentation and Logic in Javascript MVC frameworks?

I had learned that following piece of code is bad because it is obstrusive javascript and mixes presentation with logic: <a href="" onclick="archive()">archive</a> The best practice was ...
0
votes
1answer
118 views

Service as a Model in MVC

I have a PHP MVC application and a file table. I need to implement the functionality: mark all as read. The best solution for the code I found so far was to put the actual implementation in a ...
0
votes
0answers
73 views

something feels off about my model encapsulation

I have a model doing all the buisness logic. I use package scope methods to allow me to modify state on objects that the controller can view, but not change directly. Unfortunately, I'm actually ...
2
votes
2answers
182 views

What should be in my model and what should be in my controler?

We are writing a system with a sort of quasi-MVC structure (it was never stated as that, but that's what it is). I'm building up a full knowledge of the system and the controller will have to make ...
0
votes
1answer
96 views

Models structure in PHP/MVC

I have some classes that are composed with ORM generated Models. For example the Report.php (Model) is using a Document.php Model generated with ORM. Based on the document object a report is created. ...
0
votes
0answers
14 views

single model connected to multiple views on multiple dialogs, not updating [migrated]

two independent forms that are connected to the same model. as i understand how model view is suppose to work, that all views connected to the model should present the data in the model. but this is ...
0
votes
2answers
108 views

Communication between View and Model

I have a basic issue with the MVC architecture. I am aware that the View usually listens to the Model. But how are user requests propagated to the Model? Currently I do it like this, when the user ...
2
votes
1answer
136 views

Ambiguous use of “Controller” in MVC

I have heard two separate uses for the term controller when speaking of the Model View Controller methodology. An intermediary section of code that communicates between the Model and View, tying ...

1 2 3 4 5 18
15 30 50 per page