Questions tagged as 'mvc'

2
answers

htaccess hide model parameters MVC [duplicate]

I have the following URL: http://192.168.1.67/plays/mvc/index.php?route=profile&user=mikas.28 Where route = PAGE and user = USERNAME.USERID I have the following htaccess Options -Multiviews RewriteEngine On RewriteBase /...
asked by 11.09.2015 / 16:03
1
answer

Models in the MVC structure are only for database operations?

I've learned that "Whenever you think of data manipulation, think about model. It is responsible for reading and writing data, and also for validating it." Later on another person told me that models is exclusively for data processing, speci...
asked by 25.03.2017 / 00:01
1
answer

Calculation of hotel rates in MVC application

Recently I started programming in MVC and I'm full of doubts. I'm developing a hotel reservation system and after spending 3 days trying to calculate the total cost of an unsuccessful reservation, I've decided to ask for help with the code be...
asked by 17.12.2015 / 05:12
1
answer

How do I create a DataTable that has a dynamic column structure?

Hello, I need to create a DataTable in my MVC project that does not have predefined columns. The number of columns must be defined from the amount of data in a DB field. I have a field in my Model that is called Low Tier Id, it is an FK from...
asked by 14.08.2018 / 14:55
0
answers

What would be the best practice, within the MVC standard, to handle the data? [closed]

An example (I usually use CakePHP, but the question would be for any framework and language): for saving date type fields in the database I have to convert a field from the format dd/mm/yyyy to yyyy-mm-dd . For this, I use a simple...
asked by 23.08.2016 / 22:35
1
answer

Store content / variables in Model - PHP MVC

Hello, I'm starting to study the MVC standard for PHP. I have read several questions here in StackOverflow, I have already studied the Laravel documentation and read several articles. I chose the concept covered in this post as a basis -...
asked by 12.09.2016 / 03:32
2
answers

Good practices for MVC in PHP

I'm learning more about using MVC using PHP, and after seeing some classes and articles on the internet I've had some doubts about using them, since I've found classes that present the same case differently. I know there is no perfect form, but...
asked by 20.04.2016 / 13:53
1
answer

What does "::" mean in PHP? [duplicate]

In PHP, what do these four dots mean? ::? I see a lot on things like: stackOverflow :: class     
asked by 23.08.2017 / 21:32
3
answers

What are the layers of a web application? [closed]

In a simple desktop application in C# Windows Forms for example and layered model can be defined as follows: Presentation Layer Windows Forms, GUI (Windows for user interface). Business Rule Layer Written classes to...
asked by 08.04.2016 / 16:46
1
answer

Generic method in DbSet of DbContext with Entity Framework

I have an application in C# that uses Entity Framework . All my DbSet of DbContext , I extend them to have a default search for the grid, below method example. public static GridDTO GridPadrao(this DbSet<Cliente...
asked by 17.06.2016 / 13:31