Questions tagged as 'mvc'

1
answer

Avoid persisting data when refreshing

I am writing a history log of accessed options, when doing refresh on the page it is duplicating the data. How do I persist only in the request?     
asked by 30.06.2015 / 15:02
0
answers

Mapping of the controller to the domain model [closed]

We have the following situations in general, consider larger objects than the example. Situation 1 We can have a request that has all the parameters of the account, {"id":"1";"name":"test","some":"xxx".............} and the other fi...
asked by 24.05.2014 / 06:47
0
answers

Distribution of responsibilities of an agenda module

In an application, I need to present a calendar / calendar, which is composed of events and locations. I'm using the concept of repositories, where I store all queries to a given entity. In this case, events and locations have their respective r...
asked by 03.12.2014 / 15:11
2
answers

Create loop in templates with php

I'm having a hard time creating an algorithm to implement using loops in a simple template class. I have my class below, it gets an HTML file, looks for specific strings that are in this file from values of an array and replaces it wi...
asked by 16.05.2017 / 13:22
1
answer

Accentuation php - firebird

I am making a web module for an old system that uses Firebird. I made the connection using the PDO, but when I make a query using some special character it does not return results. If you do not use a special character, the query works perfectly...
asked by 23.12.2016 / 23:59
3
answers

What is the correct MVC concept to be addressed?

I'm working on a Laravel project with the MVC concept and I had some questions. Let's say that I have a Client Management (CRUD), so I have a View (Screen with Client Data, TextBox, Combobox ...) a Controller , where I pass the screen...
asked by 31.01.2018 / 00:28
3
answers

How to disable the submit of a form by "Enter" - C # MVC

I'm developing a web project in C #, and for forms I'm using Html.BeginForm . How do I disable submit by pressing the Enter key? Can you do without javascript?     
asked by 16.11.2017 / 11:26
1
answer

Can I call a class that does only one controller record?

I have a class from an android application that does only the user registry and called it the UserController. In my view controller makes the communication between view and model, but as the class only makes a registration, I believe that it cou...
asked by 19.07.2018 / 01:29
3
answers

Count without using PDC rowCount

I'm new with PHP PDO , I'm using MVC and could not count the lines in the database using% / p> Follow my code model.php : public function read($table, $fields, $where = null, $fetchMode = PDO::FETCH_ASSOC) { $where = isset($whe...
asked by 02.09.2015 / 00:03
1
answer

My application does not change data in the database

I'm developing a software for a video store with MVC. There are two problems: not changing people's attributes and displaying the following error:    java.sql.SQLException: Column 'code' not found '. This error is saying that there i...
asked by 27.10.2015 / 18:58