Questions tagged [MVC] (584)


ASP.Net MVC 2 & IIS 7.0

Using VS publish of project is written in ASP.Net MVC 2. Get a catalogue in the form: ../bin ../Content Global.asax ../Scripts ../Views Web.config in IIS7 localhost added to the Web application referencing the folder where you did publish. (indicated on the application pool .Net 4) Start a site. But when going to it get ...
tia.Stroman asked October 14th 19 at 10:09

Using JSON in Spring MVC

Need advice on using org.springframework.web.servlet.view.json.MappingJacksonJsonView to render model in JSON format. Read a bunch of articles and posts on the forums, but never got to tie the mapping to the Spring — after deploying the app crashes with exception: Сould not instantiate bean class [org.springframework.web.s...
Brain_Deck asked October 10th 19 at 13:02

Tell me examples of good implementation of MVC design pattern in php

What to read? Thanks in advance.
Dan_Botsford asked October 10th 19 at 08:32

[ mvc] How to use routing outside of the site?

As with such a static method:public static void RegisterRoutes(routecollection an routes)<br> {<br> routes.IgnoreRoute("{*favicon}", new { favicon = @"(.*/)?favicon.ico(/.*)?" });<br> routes.IgnoreRoute("{resource}.axd/{*pathInfo}");<br> routes.IgnoreRoute("{resource}.css/{*pathInfo}");<br> r...
Karolann.Littel94 asked October 10th 19 at 08:03

Want to learn MVC in PHP, where to start? What framework to choose for a project?

Actually, two questions: 1) Want to learn the MVC approach to PHP, where to start, what to read? (Preferably in Russian for a faster experience) 2) Now start a new project, I think that you need to take any framework to facilitate the development — and what kind? Guru, tell me, please :)
aisha.Fritsch asked October 10th 19 at 06:07


Hello. Not long ago, faced with a strange problem on the website — there is mvc project, there is single-tone class SiteUser through whom the entire work with services. if authorization is successful, the current user is stored in the session collection: static readonly string sessionKey = "SiteUser";   public st...
june_Strosin81 asked October 10th 19 at 05:34

I wonder whether the article will be "From spaghetti to MVC using TDD without design"?

Played the other day with a TDD and in the process perform a conditional TK from spaghetti PHP code received, to my surprise :), an application that uses the de facto MVC and other patterns without their conscious introduction to the architecture — in other words about the architecture of not thinking at all, the usual TDD ...
Marshall.Lakin74 asked October 10th 19 at 04:56

Where to store global variables?

Where the terms competent architecture to store global variables? For the sake of clarity of the issue, describe the other conditions of the problem, although perhaps a default would be implied. Other conditions are: * OOP; * first and foremost, interested in the specifics of the web application built according to MVC archi...
dorothea71 asked October 10th 19 at 00:25

How to make a validation of a model representing a list of items in ASP.NET MVC?

Tell me how you can do the validation of the model (on the form) which is a list of items?
alberto.OKeefe68 asked October 10th 19 at 00:11

Business logic in controller or model?

There was such a dispute with colleagues, where to correctly place the application logic. What can you suggest?
brenden.Pour asked October 9th 19 at 21:56