I need to save 12 entities to the same method in Controller , I do not know if I'm doing it right.
In my method Create of Controller , I call all entities and add all attributes in the same View . When you click the save button, you...
In an MVC project developed in PHP, should I validate what in model and what in controller ? Hash of passwords I'm doing in the set method of the model classes.
Some validations that are not returned to the user I believe I should do...
I have 2 elements inline and I need to cause the line to be broken, without needing to add display: block; or if possible add but not occupy 100% of the line:
<div class="box-error-page cb">
<h1 class="title-page-err...
I'm working on a multi-branch course system.
Within the register I have a zip code field and would like this zip code to find the nearest branch. Is there any API or some way to handle this problem?
I read that || (OR) is for boolean operations and | (Bitwise operation) for bit operations. What is its function inside a catch with multiple exceptions , then? I mean, I know it eliminates duplicate code but I've always considere...
All screens in my system are Views and are rendered in the @RenderBody in the main _Layout
I'd like to change my layout and make it look like this:
So basically it's how I explained it in the image, Click the Menu will render there, an...
In my code:
date_default_timezone_set('America/Sao_Paulo');
$DataEntrada = new DateTime('19-10-2014');//data no formato d-m-Y
$DataSaida = new DateTime('21-10-2014');
$interval = date_diff($DataSaida, $DataEntrada);
$totalDiarias = $interval-...
Everyone says that Java goes by value, including Objects. These are passed by copy and can not be reassigned to a new object within the method. The problem is that it is possible to change the value of objects within the method. Does not this ch...
I have enum and would like to change the Description with Resource:
public enum SystemArea
{
[Description("Gestor")]
Gestor = 3,
[Description("Administrador")]
Administrador = 2,
[Description("Professor | Prof...