Questions tagged [controller]
A controller is responsible for executing a sequence of instructions in response to some stimulus (maybe a command, action, or event). This is often used in conjunction with the Spring or model-view-controller tags.
16,648
questions
0
votes
1
answer
55
views
Book.all action displaying empty results
I'm new to Ruby On Rails development, I'm building an API containing the class user, book, author, and shelf. When I call Book.all to retrieve all the books in the Database, I get [] in return and don'...
0
votes
1
answer
19
views
How to turn a flashlight on/off with VR trigger buttons?
I am trying to make a flashlight that can be turned on and off using the right hand trigger button(I'm using an oculus quest 2). Nothing happens when I press the trigger though.
I'm using unity 2022.2....
0
votes
2
answers
29
views
Typo3 11.5 > Get controller method to create XLSX, then send headers to download the file
I cannot get this controller to create an XLS and download it. The code below does create the Excel. The Excel is also saved on the server, and I can see the file has the correct structure and content....
-1
votes
0
answers
34
views
Cannot send SMS to the customer
0
Sending SMS Not working With controller in Laravel .
I've done everything and I don't know to do anything else.
I am trying to send an SMS using php functio but I am Not getting anything.
but I don'...
0
votes
0
answers
14
views
Ajax Error to Retrieve the Data on the Server Request
I cannot retrieve the data on the denormalized table i want to retrieve first the wdp_term from here wdp_term, this are my code in my controller
<?php
class MemorialLotEntryController extends ...
1
vote
1
answer
13
views
How to print nested objects parameters in spring boot when using GET method?
Don't know if I managed to phrase if correctly, but basicaly:
I have an object "Basket" for example, it has 3 fruits and a wallet inside, the wallet containing more objects in itself.
When ...
0
votes
0
answers
42
views
This PHP Code Conver to Laravel Controller [closed]
Sending SMS Not working With controller in Laravel .
I want to conver PHP to Laravel Contriller FUnction
I am trying to send an SMS using php functio but I am Not getting anything.
but I don't know. ...
-1
votes
1
answer
21
views
Press function in Button mvc:View
<mvc:View xmlns="sap.m" xmlns:mvc="sap.ui.core.mvc" xmlns:controllerName="sap.ui.demo.walkthrough.controller.App">
<!-- <Text text="Hello UI5 again!&...
0
votes
1
answer
83
views
Cannot Send SMS Customer?
Sending SMS Not working With controller in Laravel .
I've done everything and I don't know to do anything else.
I am trying to send an SMS using php functio but I am Not getting anything.
but I don't ...
0
votes
0
answers
23
views
Python interface to USB game controller [closed]
Using Python, what is the best way to programatically interface with a HID-compliant game controller plugged into a USB port?
I tried the library pywinusb but could not get consistent data output in ...
0
votes
1
answer
34
views
Typo3 - Passing POST data from a viewer to a controller (not working)
I cannot pass a $_POST variable from a viewer to a method in the desired controller. Most online resources suggest that just defining the variable as exemplified below will work (provided the name of ...
-1
votes
0
answers
22
views
Fixing a potential error in Pug File Hyperlink [closed]
I'm currently taking online classes in JS and Node.js and working on a project, but I've hit a snag.
First, here's the link to my project:
https://codesandbox.io/p/devbox/express-controller-blueprint-...
0
votes
1
answer
33
views
Seeking Feedback on Code Optimizations: Flutter TextField Custom Widget
I have a Flutter template, and then i want to change the widget only but many fitures not working example like this
Expanded(
child: DInput(
...
0
votes
3
answers
60
views
Laravel sum total value of other column
I want this output
id
jml
total
1
1000
1000
1
100
1100
2
400
400
2
300
700
but when i try my output is
id
jml
total
1
1000
1000
1
100
100
2
400
400
2
300
300
I try this to take sum of ...
-1
votes
2
answers
69
views
Request laravel from operation in controller
I want a request a data from operation i made in controller, when i try my code the output total is null.
I try this code
$total += $request->jumlah_pinjaman;
$data = [
'tanggal' => $...
0
votes
0
answers
11
views
Inquiry about AZSPWM1 Implementation on TMS320F28335 for induction machine
I am currently working on implementing the AZSPWM1 (Active Zero State PWM) method on the C2000 from TI microcontroller for a spindle motor.
I have been following the relevant documentation and ...
0
votes
0
answers
11
views
Inconsistent 'The computed dimension of the solution does not equal N' error from dlqr synthesis
I am encountering the error 'The computed dimension of the solution does not equal N' from the sg02ad function in slycot when using the Python Control Systems Library function dlqr for LQI controller ...
-1
votes
0
answers
16
views
Spring controller map Entity by Slug
I have entity
@Entity
@AllArgsConstructor
@NoArgsConstructor
@Getter
@Setter
public class Article{
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@Column(columnDefinition = "...
0
votes
1
answer
44
views
Thymeleaf not processing templates properly
I have been developing a simple project with frontend and backend for managing the university IT tickets. After implementing different approaches (and all of them working well) being the last using ...
0
votes
0
answers
27
views
Command [generate-views] error: Could not execute build using connection to Gradle distribution 7.6.3
I have a Grails 6.0.0 project with scaffolding plunging in place. When I try to generate controller I get the following exception. create-controller is working fine.
See https://docs.gradle.org/7.6.3/...
0
votes
1
answer
76
views
Problem with "java.lang.reflect.InvocationTargetException"
I am very new to this and I have a problem with this message that I get every time I try to run a program. I've tried a thousand things and I don't know what else to do. If anyone could help me I ...
0
votes
1
answer
56
views
ASP.NET MVC view won't update after model changes
The Radiologists view loads just fine first time you enter, and the dropdown is filled with data.
After you select a doctor, the table should display the two values shown in the view, but they won't ...
0
votes
2
answers
46
views
Handling special characters in uri
The below mentioned is my requestUrl
"http://localhost:80/v1/accounts/60a362bd6b84a37effc8f5a3/name/QA Analyst"
I am using the following code
UriComponentsBuilder builder = ...
1
vote
1
answer
26
views
Radio Tile using Getx controller is not working, getting only white blank screen
I am trying to make a form in flutter, here I am using the Flutter Stateless widget with a Getx controller, but when ever I am trying to add the radio list tile, getting only white blank output, if I ...
0
votes
0
answers
39
views
Replacing sync function with async in node js without using await
New to node/Typescript
Trying to change few things in common library/service but not working exactly as expected -->
export function header(requestData: any): any {
const headers: { [key: ...
0
votes
1
answer
18
views
In NestJS and passport, how do I create an endpoint that accepts a valid or invalid JWT?
I'm using NestJS 10 with passport-jwt. I have a controller method in which the user can access whether or not they include a valid JWT in the Authorization header. If they include a JWT, I would ...
0
votes
2
answers
64
views
Rails Controller update subtract 1 from value
How can I subtract 1 from a value in a Rails Controller it's easy in Postgresql
Update junkcars
Set junkcartotal = junkcartotal -1
Where id = 5161
In a rails controller I tried
Junkcars.update(...
0
votes
1
answer
29
views
I have this error when add column to database dbml file linq
This this my dbml file in the asp.net mvc core 5
When i try to create a new entity for my modified table and then drag/cut the new property from the new entity to my old one , I have this error in ...
0
votes
1
answer
27
views
Pass controllers's input value to another page's stateful widget
login.dart
class LoginForm extends StatefulWidget {
final Function toggleForm;
const LoginForm(this.toggleForm, {super.key});
@override
_LoginFormState createState() => _LoginFormState();
...
0
votes
1
answer
33
views
Calling Identity Register.cshtml from controller
I have installed Asp.net core Identity and have used it in a previous applications without any real issues. Login and Register have always used a link from a web page - e.g.:
\<a href="/...
0
votes
1
answer
39
views
Take Page Size Value from Config file in EnableQuery Attribute
I want to fetch page size value from the app settings file and use it on the controller attribute [EnableQuery(PageSize = 5)] instead of hardcoding.
public class PersonController : ODataController
{
...
0
votes
1
answer
65
views
Nest.js cannot resolve dependencies
I have been trying to resolve the two issues, but however I tried to check and fix all codes and the location of each repository, they are not solved.
The first error
FAIL src/users/users.service....
0
votes
2
answers
78
views
Render and/or redirect were called multiple times in this action. You may only call render OR redirect, and at most once per action issue
When I am changing the page using pagination button or using the scrobble bar in the kanban board card getting DoubleRenderError in Ruby on Rails occurs when I attempt to both render and redirect in ...
0
votes
0
answers
21
views
Can't ping hosts in mininet with custom controller
I am new to mininet. Trying to create a custom controller using this repo: https://github.com/joshivaibhav/CustomSDNController
After implementing all of this the controller with the command python ...
1
vote
1
answer
35
views
Running an external console app (that writes to the output file) from within web app controller
I am running web app controller application (c#) on the server side. When particular http request comes in, the controller runs the external console application that reads the data input file and ...
0
votes
1
answer
51
views
@Valid does not work in controller for DTO
when sending an invalid request to http://localhost:8080/student, the annotation does not work and the invalid data goes further to the controller, service, etc.
import org.example.controller.dto....
0
votes
1
answer
23
views
Passport local strategy attach validate return to @Body in nestJS
Basically, I have a nest application and followed the implementation of the auth module with passport following the docs. After that, I've been doing some refactoring, adding types, etc.
One of the ...
0
votes
1
answer
25
views
How do I access my user in a valid JWT for unprotected routes?
I'm using NestJS 10 with TypeORM 0.3.17. I have this method in my controller
@UseGuards(AccessTokenGuard)
@Post()
create(
@Req() req: Request,
@Body() createOrderDto: CreateOrderDto,
)...
2
votes
1
answer
56
views
I'm having problems trying to instantiate a class (controller) in nextjs 13
I have a application in nextjs that will instantiate a class (controller) that will do all the access type, like get data from database. But always getting this error:
Error [ReferenceError]: Cannot ...
0
votes
0
answers
18
views
serialize all forms in jquery, to send data to Controller in a List of presenter
I have n forms with the id "[email protected]" generated in loop in a cshtml partial like this
<div class="container-principal">
@for(val c in @Model.what)
{
...
0
votes
1
answer
29
views
Flutter: Controlling the scroll of 2 different controllers
So, I have two different scroll widgets, viz., TextField and ListView (ListView.builder) attached with two different scroll controllers, viz,. _textEditingController and _scrollController.
The basic ...
1
vote
0
answers
35
views
i can't figure out the logic behind update or delete pages using jquery and codeigniter
all three components (the view and it's jquery functions and controller) doesn't work and i tried a lot .. any help ?
i got this "all users" view
it has a loop of all users
And at the same ...
-1
votes
1
answer
46
views
maximum number of players
If more than 2 players connect to the airconsole game, nothing in the controller.html code works.
how can ı fix this
I did try more than 2 player connect the game and it not work.how can ı fix this
Is ...
0
votes
0
answers
45
views
Restricting Sales Representatives to View Only Their Own Orders in PrestaShop 8.1.1
In PrestaShop 8.1.1, I created a profile named 'Sales Representative'. This profile has an ID of 5. I've added the appropriate permissions so that they can't do anything other than add, edit, and view ...
0
votes
2
answers
57
views
How to execute code on every page load on laravel
I need to prepare a set of dates and store them in Session variables when the user reloads the page. This is done from the Controller. This is a problem because the app calls about 18 different ...
1
vote
1
answer
32
views
Developing ever first authentication application on Laravel with .blade files
so I decided to learn Laravel. I've built some small applications, but now, I decided to build a small CMS on my own and I am facing an issue in pretty much the beginning. I created an AuthController, ...
0
votes
1
answer
27
views
Laravel auth config of another guard doesnt works and stills using default model
For context, I am making a application, where I have a User for the desktop application, and a Student user. I want to make API login using the Student and web auth with the default User. The default ...
0
votes
0
answers
19
views
Getting error when trying to run application related to UserManager, IdentityRole etc
Getting error InvalidOperationException: Unable to resolve service for type 'Microsoft.AspNetCore.Identity.UserManager`1[Microsoft.AspNetCore.Identity.IdentityUser]' while attempting to activate '...
2
votes
3
answers
65
views
Cannot read properties of null (reading 'name')
I am following The Odin's project local library tutorial (Express app).
Here is my code (only relevant parts):
in routes/catalog.js I have this
router.get("/books", book_controller.book_list)...
0
votes
0
answers
36
views
Update symfony form using two routes in a controller
I am having problems updating a form using two routes. I have a monaco editor (code editor package from microsoft) which can contain json data. On clicking a button, fields shall be generated in form ...