Hot answers tagged

3

Your business logic should remain untouched. The Rest API is a view. The UI is a view. At most the controller should change to accommodate this change. In an ideal design the controller would have no knowledge of any views and wouldn't change at all. Rather than showing the flow of information it would have been helpful to see the directions of ...


2

My view on this is that the model needs to give an array of object that are called ViewModel or viewData encapsulated in a cellConfigurator. the CellConfigurator holds the CellInfo needed to deque it and to configure the cell. it gives the cell some data so the cell can configure its self. this works too with section if you add some SectionConfigurator ...


2

In the Microsoft version of MVC, you have the heavy Controller implementation instead of the heavy Model implementation that a large portion of the development community uses. The ORM should be a part of the Model layer, but a lot of Microsoft documentation has Entity Framework (which is their ORM) throughout the Controllers. In a lot of ways, it makes ...


1

I'm going to answer my own question after a day of research. In the end this ended up looking more towards cron jobs which support MVC web applications (which isn't exactly the same as my original question but yielded some interesting information none-the-less). Anyway, here's what I found: Q. The concept of routing all requests to one file is a little ...


1

What you're seeing in the line of code <source src="@Url.Content(Model.tbl_Video.VideoPath)" type='video/mp4' /> is just ASP.NET MVC's way to insert the correct source element into a <video> tag. ASP.NET MVC has no responsibility whatsoever in the streaming process. The browser streams the video content directly. Further Reading HTML ...


1

The examples shown is correct, but Zend\Form is not exactly what you want to use in your controllers. I'm talking about Exhibit A, where it shows how much code to create, populate and style a form with two elements. It is tedious to create forms that way. To avoid turning the controller into a form factory, you need to create a factory that will create the ...



Only top voted, non community-wiki answers of a minimum length are eligible