Most voted "controller" questions
A Controller is responsible for controlling the entire flow of information passing through the site/system. It is part of the MVC standard.
Learn more…192 questions
Sort by count of
-
0
votes1
answer169
viewsHow do I use the web api for controllers and MVC for view(Front-end)?
hello, my problem is this, I’m doing an internship test and the guy asked to do an Asp.net project with mvc only for views, and web api only for controllers and another layer for the bank only that…
-
0
votes0
answers195
viewsMultiple Models in an Asp.Net MVC#
I’ve had a question for a month. I have 2 tables or Models and I want the view to be manipulated, such as: view your data as they leave the BD and also insert data in the same tables. I saw many…
-
0
votes1
answer59
viewsUsing Factory and Controller to handle Json
On this website Andrew Mcgivery I found this very interesting example: .controller('UserCtrl', function($scope, $stateParams, userService) { var user = userService.getUser($scope.id); })…
-
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
votes1
answer260
viewsCapture the entered value in the input to submit using jQuery
I need to lock the shopping cart of a shop made in Prestashop, until the person type the email, or log in, after he insert a merchandise in the cart. Then I made the following implementation in…
-
0
votes1
answer73
viewsDoubt codeigniter
Opa Galera! I’m starting with php and codeigniter, I have a question: I have two controllers, each with crud functions, but would need the create(form) views to be loaded on a 3rd page together, how…
-
0
votes3
answers1541
viewsAngularjs Format date
As a data format in the input type controller="DATE"? i have this return in controller... Sat Aug 06 2016 00:00:00 GMT-0300 (Hora oficial do Brasil) Mon Aug 01 2016 00:00:00 GMT-0300 (Hora oficial…
-
0
votes0
answers119
viewsForm does not work with Standard
Speak next guys I have a problem sending form in this website I am unable to send from an error that I do not know what is follows part of my codes with the log error: Controller: <?php namespace…
-
0
votes0
answers33
viewsCakephp 3 RSS error
I want to make an RSS generator, I followed the tutorial of the same in http://book.cakephp.org/3.0/en/views/helpers/rss.html. But things are not working as they should, because according to the…
-
0
votes1
answer2878
viewsHow to create a query form with Angular?
Person, as I create a form with some fields for consultation for example: Name and Phone and a Query button to send this data to the backend to query and display in another View the return in a…
-
0
votes0
answers28
viewsERROR when selecting a simulation
I have a subscription problem. I have a screen that recovers cycles that are open according to the course of the user and for each cycle of this already has a simulated saved, ie a relationship.…
-
0
votes0
answers37
viewsCannot read Array data
I’m having problems in the code below is not able to read the value $Scope.ids[i]. id, follows code: $scope.carregarEnderecos = function (id) { $scope.repeateEnderecos = []; $http.post(url_sistema +…
-
0
votes1
answer1107
viewsWorking with Factory
I am developing a system for a snack bar, where she will have to register the cities and within the cities the neighborhoods with their due freight, the problem is occurring the first time that…
-
0
votes1
answer36
viewsWhen calling controller in codeigniter, it always seems to be going through "Welcome"
I’m making a simple application in PHP with codeigniter, where I’m trying to access a controller, and apparently whenever I call this controller, it goes through Welcome, example:…
-
0
votes1
answer46
viewsHow to edit the title of ALL Alerts in the Ionic app, and not just one?
By following the Ionic documentation, I can edit the title of an Alert using the one taught in the following link:insert link description here However, when Alert is fired from within an iframe, it…
-
0
votes0
answers537
viewsSyntaxerror: expected Expression, got '<' in AJAX call
Hello I have an error in an AJAX call in my Javascript. For some reason, it does not arrive at the function in my Controller and gives the following error: Syntaxerror: expected Expression, got…
-
0
votes0
answers158
viewsCreating routes (controller/id/action) in c#
I’m trying to create a very specific route on a page of my project. As usual, routes on . NET are controller/action/id but on a specific page I would like it to be controller/id/action. What I got…
-
0
votes1
answer70
viewsHow to run a method on startup of ALL Controllers?
I have a static class that carries language in relation to cookie stored or the URL. Throughout controller I have to insert once the following method: protected override void…
-
0
votes0
answers131
viewsUpdate record with image - Laravel
Good afternoon! I have a problem with the controller update method. By invoking the update, instead of updating the record, the log is creating a new one. This way I get two similar records.…
-
0
votes0
answers25
viewsPass two Controller variables to Codeigniter view
I would like to pass two variables from Controller to Codeigniter view, follow code: $lista_diversos['diversos'] = $this->diversos->getDiversos(); $listacodigos['codigos'] =…
-
0
votes1
answer184
viewsWhy does Codeigniter understand a route as a directory and break links?
I set up a CI system that uses template schema, with header, navmenu, template (component) and footer. I use the Foundation for styling. The problem is this: when accessing a simple route, such as…
-
0
votes1
answer430
viewsError generating Controller MVC 5
Good morning colleagues, I am trying to generate a controller on MVC 5 with VS 2019 and am taking the following error message. Someone could help me with this problem? Error executing selected code…
-
0
votes2
answers101
viewsMVC desktop - where is the Controller?
I modified it this example of MVC to try to make it more like my MVC vision (in which the role of the Controller is not very clear). I ended up with a program that only has Views and Model, without…
-
0
votes0
answers19
viewsI’m having trouble validating access in a system
Warning: mysqli_query() expects Parameter 1 to be mysqli, string Given in Sqlfunctions.php on line 13 Login.php: <?php if(isset($_POST['usuario']) && isset($_POST['senha'])) {…
-
0
votes0
answers22
viewsError when trying to Add MVC Controller with views, using Entity Framework
Hello, when I try to create a Controller gives the error attachment. Does anyone know how to fix it? Thanks.…
-
0
votes0
answers82
viewsCan’t find Controller’s method
I was testing some features on the project site that I am doing in MVC, but it has a function that is not working anymore. When accessing the site it says: "Method App Http Controllers…
-
0
votes1
answer821
viewsLaravel with panel Laravel-admin
I’m a beginner with Laravel and I’m using Laravel 5.3 with the Admin Panel called Laravel-admin (https://github.com/z-song/laravel-admin) I need to get the answer of a radio button with Ajax before…
-
0
votes1
answer82
viewsI can’t do include
I try to make include, but the message appears : In some of the research I’ve done they say to include using System.Linq; using System.Data.Entity; but mine already contains these. My classes are:…
-
0
votes2
answers187
viewsload date time without javascript
I wanted to know if it is possible to send directly from the controller, for example the current date and time of the system without using javascript. Ex: <div class="form-group">…
-
0
votes1
answer444
viewsAdd field to standard registration form of Laravel 5.3
Good afternoon, I want to add the type field to the user of a system in Laravel and am doing as follows: Migration public function up() { Schema::create('users', function (Blueprint $table) {…
-
0
votes1
answer2004
viewsCall Action via javascript
Good afternoon, I need help with a problem until simple, but it’s knocking me down. I need to call a controller method and pass two parameters to it, I did something, but it’s not working, someone…
-
0
votes1
answer1056
viewsHow do we know where the route came from and redirect it back?
I have 3 tables on BD: Emitentes, Pessoas e Cidades. Where on the table Issuers and in the table People have the FK id_cidade. When I’m registering one, both a Emitente how much a Pessoa I have in…
-
0
votes2
answers90
viewsProblem Handling a list of Objects in jsp
I’m having trouble handling a list that comes from my controller in my jsp I believe I’m not using the right way to treat and go through this list follows my controller who creates the list.…
-
0
votes1
answer395
viewsSave the information of a variable in Codeigniter to the database
I’m getting a lot of product information from the Cosmos API and storing it in variables, but how do I save the information from these variables in the database? VIEW $curl = curl_init($url);…
-
0
votes1
answer523
viewsJavascript redirecttoaction does not work
After a validation I call the controller (Profile) in the action (Add) to add a new record through javascript. If the insertion goes well I give RedirectToAction for the index of this same…
-
0
votes1
answer69
viewsLaravel Controller?
How I can style an object into one array in the controller Laravel? Mapper::marker($marker['lat'], $marker['lng'],['label'=> "<div>".$marker['label']."</div>"]); Controller public…
-
0
votes1
answer212
viewsAngular + requirejs Controller logging error
I’m starting an application with Angular + Requirejs. Follow below Main.js ;(function (doc, undefined) { 'use strict'; var $scriptDefault = doc.querySelector('[data-js="script-default"]'); var…
-
0
votes2
answers904
viewsHow to reference the variable within HTML through Angularjs?
Inside an ng-controller, I want a variable to appear, and it is not appearing. HTML code: <div class="body" ng-controller="mercadoriaCarrinho as merc"> <span>Total dos produtos:…
-
0
votes0
answers285
viewsCall Controller Search Action
I have an action in my controller that calls a service that does a search using stored procedure and returns a list to me. I made the form in the View to call this Action, only it’s not calling…
-
0
votes0
answers101
viewsValidate data and generate temporary password - cakephp
Good morning, I need to create a function that validates the client fields and compares to check if they are correct if they are, generate a temporary password. Follow my code below. function…
-
0
votes0
answers105
viewsUpdating in the database
There is an error in the family composition, which says: Undefined variable: compositionFamiliary the family composition code is: $composicaoFamiliar = DB::table('membro_familiar')->insertGetId([…
-
0
votes0
answers461
viewsLaravel Problem with passing parameters to Controllers
then I have a pertinent problem. I need to create a link to the.Edit controller to edit of course a value in the database. I’ve tried pretty much everything. But I keep getting an error:…
-
0
votes1
answer573
viewsASP . NET MVC - Using a @Html.Dropdownlist for two Actionresult
Hello, I’m developing an application with ASP . NET MVC and using the Epplus API for XLS export. In the View of an equipment report I have two @Html.Dropdownlist with Type of Equipment and Status…
-
0
votes1
answer99
viewsCodeigniter - array pass to controler
Good afternoon everyone, I have a problem in my code and I would like a help to solve it. It works like this: I receive a form of 3 variables (id_event, quality_user and id_user - the latter comes…
-
0
votes2
answers1179
viewsHow to make the Spring MVC Responseentity return in a new page?
I have a method of a report controller (posted below), to which I return a PDF. The problem is that it returns the pdf in the same application tab and this is killing it. How can I return in a new…
-
0
votes1
answer700
viewsLaravel 5.6 recover data from a form?
Error Symfony Component Httpkernel Exception Methodnotallowedhttpexception No message Method in the Controller class GuzzleController extends Controller { public function post(Request $request){…
-
0
votes1
answer63
viewsNull Exception when importing the service into the Rest controller
In the example below, I am trying to make a Restful Service by fully separating @Restcontroller, @Service and @Repository. But I’m having a difficulty, because when I try to use the service inside…
-
0
votes0
answers41
viewsI’m trying to make Scaffold in visual studio with MVC 5 but is giving the following error
I’m trying and makes the following mistake This is the mistake There was an error running the Selected code Generator: 'Unable to Retrieve Metadata for 'iceguara.Models.Member'. Using the same…
-
0
votes0
answers480
viewsSend complex view object to ASP MVC controller
In my View I have a complex model where I display in a table only a few fields. In this model I have another list called Tracks where I do not display its contents. Note the image below. I need to…
-
0
votes0
answers22
viewsDisplay Null Variables in a Modal
Guys I’m having the following problem. I had to create an audit page of my system, where it displays the edits that were made in a certain form. When a form is first filled in, it shows all the form…