Questions tagged as 'mvc'

1
answer

Difference between Library and Helper

What sets the helper of a library ? For example: Let's say I have a class for URL handling. I call her and she fills out the URL with the site path. Would this be a helper ?     
asked by 18.03.2015 / 19:36
3
answers

MVC class diagram

I'm developing a web system in php, where all controllers extend their respective models, for example: I have a userController and a userModel, my question is as follows, in the precise class diagram represent the controller's methods. p> Anot...
asked by 02.04.2017 / 00:50
1
answer

Structuring the router class in PHP with MVC

A friendly url of the type: www.meusite.com.br/controlador/metodo/argumentos It is handled in my Request class, where it "explodes" the url , separating it into segments, which are $controller , $action and $args...
asked by 21.02.2015 / 04:49
1
answer

What are web workers and how to use them

Through searches I understand that Web Workers allow the concurrency of processes in JavaScript. It would be like firing a thread JavaScript that updates the View . Can you consider the adaptation of the MVC pattern to JavaScript? I woul...
asked by 14.01.2015 / 20:36
1
answer

Filter in DropDown using C # MVC 4

I have a dropdown in my view that I fill in as follows: ViewBag.NfeStatus = EnumHelper .ListAll<NfeStatus>() .ToSelectList(x => x, x => x.Description()); My NfeStatus model is an enum: public enum NfeStatus {...
asked by 17.01.2017 / 12:33
1
answer

DataAnnotations for checking between Start Time and End Time

I have two fields of type [DataType (DataType.Time)], being the Start Date and End Date, and I can not let the user enter the Final Date smaller than the Start Date for the purpose of calculating hours worked. p> How do I compare two time fiel...
asked by 23.12.2016 / 18:09
1
answer

Application of more than one design pattern

I've been studying design patterns and thought it was cool, but there was one thing I did not understand. Regarding design patterns , can I apply more than one of them in the same project? Regardless of which one (eg, Singleton, Observer, Bui...
asked by 20.11.2015 / 14:10
3
answers

Use ajax with ActionLink

I want to change the ActionLink and URL to work with Ajax , but I do not know how to do that. Follow my code with ActionLink and URL . <ul class="nav" id="side-menu"> <li> <a href="...
asked by 12.06.2014 / 14:57
2
answers

In MVC, if I have utility classes, will they be part of the models?

For example, let's assume that I have a string manipulation class called strman that I will use to store operations to work with strings, already in the models folder I have usuario and usuarioDAO , in case of class% how can...
asked by 06.01.2016 / 11:17
2
answers

What are database model migrations?

Some MVC frameworks (Rails, Laravel, and others) provide migrations of the database model. What are they, how do they work and what are the advantages / disadvantages of using them?     
asked by 19.02.2014 / 01:41