Most voted "mvc" questions
Model-view-controller (MVC) is a model of software architecture that separates information representation from user interaction with it.
Learn more…743 questions
Sort by count of
-
0
votes1
answer85
viewsRemove database data with GRAILS AND GORM
I’m learning a little bit about GRAILS and I’m having the following problem I can display the information of some registered users usually more when I try to delete them I can’t and I get no error,…
-
0
votes1
answer281
viewsHow to pick up an Array on all view pages
I have a view that’s called by a master page, the problem is that step one array and the second page called, but the data does not arrive as expected. ex. //controller index class Index{ public…
-
0
votes1
answer552
viewsCreating a new view in a Controller
In a Rails project, I created a Scaffold Responsability and consequently Rails created the whole basic structure of this Scaffold. I created a has_and_belongs_to_many relationship between a model…
-
0
votes1
answer84
viewsSending Records from a new View
I created a new action knowledges on my controller responsabilities and created a view called nested_knowledges. I made the action , render this view. I put the following code in this view: <%=…
-
0
votes1
answer155
viewsAllocation of responsibilities in the MVC
I’m starting work with MVC, more specifically with Laravel and Eloquent (the ORM embedded in Laravel). I have studied and continue to study the MVC standard and its advantages. However, in practice,…
-
0
votes1
answer83
viewsProblems persisting data in Doctrine
I am doing this: function Autenticar($objecto) { //require $this->db; require ROOT . "config/bootstrap.php"; return $entityManager->getRepository('models\Usuarios')->findOneBy(array('login'…
-
0
votes1
answer194
viewsError showing List output using MVC and JSF
I need to return data from the database to JSF but even before I get to JSF I cannot show the searched data. I Have Next Mistake: Advertência: #{usuarioBean.pesquisa}: java.lang.ClassCastException:…
-
0
votes1
answer1137
viewsTake data from a specific cakephp field
Etou starting now with Cakephp, and I’d like to know how to get the value of a specific field. For example, I have the name and email fields. How to get the name field value? PS: I know you have the…
-
0
votes2
answers773
viewsInclude_once and right directories - php
I’m having trouble with include regarding directories, because when I call a class from another directory that contains another include the paths are different. I need to know if there’s any way to…
-
0
votes1
answer93
viewsAbstractcontroller::Actionnotfound for the Destroy action
Hello, I have two applications running on Heroku with the same code, only I’m having a little problem with the producing. When trying to make a request, I have the following log:…
-
0
votes3
answers262
viewsHow to instantiate a model and get its features by its name in Ruby on Rails
Since I have the abstract class User, and its sub-classes Client Employee and Admin, would like to render screens according to the chosen subclass. So: users/_form.html.erb : shall contain a…
ruby-on-rails ruby mvc abstract-classes instantiate-objectasked 9 years, 10 months ago user5020 1,027 -
0
votes1
answer473
viewsRelationship in the Doctrine
I have a problem that is analogous to the following situation: A car may or may not have a driver, or a car may have at least 0 and at most 1 driver. A driver may or may not have a car, ie a driver…
-
0
votes1
answer91
viewsMap Routes works only default
I’m having a problem with my project. I have two routes, a "Default" and a test, but I do not know if it is done correctly because it does not work when they put in the url what I put there, works…
-
0
votes1
answer341
viewsView in PHP MVC project
I’m developing a PHP MVC project and I did the whole view in.html files. When I need to manipulate a form, I specify in the action the path to a script in the controller. My question is whether it…
-
0
votes1
answer1699
viewsHow to save the same object in the database using entityFramework . net MVC?
I need to update a table in the database using entityFramework, because when I update a value of a field and have it saved ,. Please someone has a way to fix this?? grateful…
-
0
votes1
answer1242
viewsCodeigniter - Postgresql database query (multi database)
Well, I am developing an application that makes a listing. The listing is produced by consulting a database. The x-list is generated only by the query in the x-bank, the y-list, generated only by…
-
0
votes1
answer2486
viewsLaravel and the MVC concept - where do I put my classes/functions?
Hello. I’m new to Laravel and MVC architecture and I have a conceptual doubt. In my bank I have a code(string), for example "[paragraph]". I will transform this string into "< p>meu…
-
0
votes1
answer349
views -
0
votes1
answer94
viewsMy application does not change database data
I’m developing a software for a video rental company with MVC. There are two problems: not changing people’s attributes and displaying the following error: java.sql.Sqlexception: Column 'code' not…
-
0
votes2
answers1344
viewsOpen another page in modal Jquery
I have a problem that I can’t solve in any way. Well, I have a project on Asp.NET MVC as follows: Model public class Objeto { public Objeto() { } public Objeto(string nome, double valor, double…
-
0
votes1
answer198
viewsUsing the Codeigniter Helper (Download_helper)
Good evening! I’m using the function force_download() to download a file. However, I need to do this same procedure, but with downloading several files at the same time. I implemented a code, the…
-
0
votes1
answer197
viewsDynamic ASP.NET MVC menu
I am new in MVC and need to make a dynamic menu, but I do not find solution (web Forms was easier rs). I have 3 models (Menu, Submenu1 and Submenu2) I need to go through these objects and mount the…
mvcasked 8 years, 10 months ago Alexander Leão dos Reis 175 -
0
votes1
answer259
viewsHow to create an instance of a Prestashop module within a controller?
I would like to create an instance inside the control of a particular module to be able to validate it in the Prestashop authenticator pattern: I am using Prestashop for the version: 1.6.1.3 Path to…
-
0
votes2
answers381
viewsASP.NET MVC with Formsauthentication
I have an Asp.net MVC application with Formsauthentication, but the need arose to release a page for the visitor of the site or a page is released for everyone and the rest of the controllers falls…
-
0
votes0
answers73
viewsSuggestions for updating JSE application to J2EE
Already for more than three years I do not work with Java for real, I have worked with PHP, learned and liked a lot. In my opinion, all two languages have many legal advantages to be incorporated…
-
0
votes1
answer151
viewsInsert controller into the application from the requested template
I am creating an angular application where, on the home page I last a controller to do some validations before proceeding with the application login. My question is, do I have to "instantiate" the…
-
0
votes1
answer221
viewsMVC connection, which one to use Msqli or PDO?
I’m starting to program a PHP MVC, which type of connection is most recommended: Msqli or PDO and why?
-
0
votes1
answer240
viewsWhat is the best way to calculate between attributes of a model, to display in the view?
I’m currently calculating everything in the view, something close to below: {{{ $object->a + ($object->b==1?5:10) + $object->c * (int)object->d... But it doesn’t seem like a good idea. I…
-
0
votes1
answer523
viewsGrab parameter from URL
I need a code that when I click on the image, this image will open in a new tab. So far I have managed to make that when I click on my image it opens another tab with the image path in the URL. How…
-
0
votes0
answers100
viewsDeclare and show variables in Model MVC
I am using the MVC standard, and I need to declare the value of a variable inside the model file and I ended up doing this: public $user_id = null; public $user_name = ""; public $user_email = "";…
-
0
votes0
answers234
viewsRendering HTML with AJAX call using PHP and MVC concept
Good night. I usually use the MVC (Model-View-Controller) standard in projects, independent of the programming language. In PHP the directory structure looks like this: - assets - css - js - img -…
-
0
votes1
answer236
viewsHow to apply the 3-layer concept with Gridview C#?
I have a project where I present a Gridview in a Webforms project Asp.net C#. I tried to apply the concept of 3 layer in this way, but the page only of the Reload and the grid does not appear in the…
-
0
votes0
answers213
viewsPHP using MVC
I’m creating an application in PHP (without frameworks) using MVC, but I’m having a lot of doubts, because until today I only used Symfony to make PHP applications. I have doubts about the routing…
-
0
votes3
answers524
viewsCount without using rowCount from PDO
I’m new to PHP PDO, I’m using MVC and I couldn’t do the line count on database using $obj->rowCount(); Just follow my code php model.: public function read($table, $fields, $where = null,…
-
0
votes0
answers58
viewsDoubts of modularization of classes
I am developing an application for didactic purposes, end of semester college work, in this will do CRUD of the disciplines in a table in the bank already created, "DISCIPLINES", I thought about…
-
0
votes1
answer125
viewsLogging in form_validation does not validate as expected
I’m starting with codeigniter, but I have a little problem: When logging in, it doesn’t leave the incorrect password and email if. Form fields are correct and bank. Can you help me? This is the…
-
0
votes2
answers2265
viewsPopular table using Json
I’m having a hard time getting a table in my code cshtml. I’m new to the ajax and I’m not really understanding what I need to do with the data that came from the bank. Just follow my code: Code…
-
0
votes1
answer61
views -
0
votes1
answer188
viewsHow to use form validation in the model (MVC)?
I need to use MVC on the system and I want to know if the validations there in the.php register with $_SESSION['token'] should be in Usermodel. Who can help... I don’t know much php. <?php…
-
0
votes0
answers52
viewsMVC Standard - Which layer do file classes belong to?
Which layer should classes be assigned to handle files? Model or Controller?
-
0
votes0
answers37
viewsrequire_once replaces html
I have a view with require_once for a controller, but using require_once my html code just disappears. Follow the code prints:…
-
0
votes1
answer580
viewsAjax sending template to controller
I wonder if it is possible to pass a "Model" object via ajax to my controller. $.ajax({ type: "POST", url: "@Url.Action("CadastrarSementesVariedades", "SementesLevantamentoVariedades")", data:…
-
0
votes1
answer56
viewsNullpointer Exception during registration using MVC standard
I have a ready-made application that was created procedural, but for learning purposes I decided to reprogram it using object orientation and the MVC standard. During the registration of a publisher…
-
0
votes1
answer92
viewsMVC structure on remote server
I have the following directory structure in localhost: -config -hsapp |--Controllers |--Models |--Views -public |--Assets |--Index.php -vendor composer.json You notice it’s an MVC structure. I…
-
0
votes1
answer39
viewsabstract methods of the same signature
Hello, I am building for my college work a Webservice based on MVC architecture. For a better understanding of the problem I will explain a little how the classes are currently: The abstract Model…
-
0
votes0
answers99
viewsError when returning the object after query
Good night to you all. Objective: The main objective is to take the user id and the code of the simulated that he answered, and display it on another screen after he answers this simulated, however,…
-
0
votes1
answer129
viewsMVC standard for Controller in codeigniter
I have the following scenario, some models that will be accessed via administration (website) and via client (app), in the administration it will be able to read and write data and the customer only…
-
0
votes1
answer344
viewsWhat is the difference between domain logic and application logic?
How do I know whether to put the method in the class itself or in the class BO? When to know the difference of domain logic and application logic? Note: I was left with the doubt after read this…
-
0
votes1
answer190
viewsDoubt about . NET Framework 3.5 and ASP.NET MVC
I need to create an ASP.NET MVC application using . NET Framework 3.5 following steps: File -> New -> Project, then I choose, Visual Template C# -> Web afterward .NET Framework 3.5 and…
-
0
votes1
answer170
viewsSqlupdate does not change data in the database
Note: Several people could not solve this question and marked my question as erroneously duplicated because of an answer in a similar question but the answer does not help me at all. I am developing…