controller Questions
10
Solved
I did not use Spring Security but it is asking me to authenticate.
Exception for URL(http://localhost:8080/SpringJob/ExecuteJob):
{
"timestamp": 1500622875056,
"status": 401,
"error": "Unaut...
Fenestrated asked 21/7, 2017 at 7:52
3
Solved
What's the exact way to generate a link to a module controller in prestashop? Also, how should really be named the controller's class and how the url params should mirror?
Chromium asked 1/8, 2014 at 16:45
2
Solved
I have a resource controller and want to add an extra custom policy method for destroyMany
In which I would check if the user is admin before deleting many.
The default methods work fine
Contro...
Bennion asked 9/3, 2021 at 7:13
13
Right now I decorate a method like this to allow "members" to access my controller action
[Authorize(Roles="members")]
How do I allow more than one role? For example the following does not work ...
Humoresque asked 31/3, 2009 at 5:49
3
I'm trying to apply Clean Architecture from uncle Bob in Laravel application.
What i'm concerning is: As uncle Bob describe, the Controller should belongs to third circle: Interface Adapters (from...
Meredi asked 30/11, 2016 at 10:18
1
I built a mini-website with react - everything was working fine until I logged on today. Now I cannot render it and instead get the following error: "AbortController' is not defined".
Par...
Shanitashank asked 14/4, 2022 at 14:3
6
Solved
If we have "example_name" we can change it in url using [ActionName("")] So, i want to do this for controller name.
I can do this:
ControllerName > example_nameController > in URL: "/example_co...
Cerracchio asked 26/10, 2015 at 11:18
4
Solved
I made a structure to of Controllers and Views (fxml) to separate my code as much as I could, and I'm wondering how to communicate between 2 controllers. I mean, a controller have to call some func...
Treasonable asked 4/3, 2014 at 17:14
3
Solved
I'm working on a WPF project that's a mishmash of code-behind xaml/xaml.cs and a few not-quite ViewModels as well.
(Disclaimer: Until recently I've had very little in the way of WPF experience. I ...
Ld asked 19/10, 2013 at 10:30
6
Solved
I renamed my UsersController.php file to ~UsersController.php for testing purposes and everything was working fine until I renamed it back to UsersController.php and now I'm getting the below error...
Mccombs asked 8/11, 2018 at 7:41
17
Solved
I have two controllers SubmitPerformanceController and PrintReportController.
In PrintReportController I have a method called getPrintReport.
How to access this method in SubmitPerformanceControl...
Augustineaugustinian asked 21/5, 2015 at 5:21
4
Solved
I know this is probably a pretty simple concept. I am trying to create a link to a controller and action. For example I have a link in my layout file to update a record when a link is clicked, so I...
Photocurrent asked 9/4, 2011 at 19:2
4
Solved
So these three methods are in the Laravel docs for testing if the request is for JSON.
I basically want to return JSON for any request that is requesting JSON or AJAX.
Request::ajax()
Request::i...
Paleobotany asked 30/6, 2017 at 21:59
6
Solved
I'm still exploring Laravel 8 but I have a problem with my controller's store() method 'not defined.'
InvalidArgumentException Action PostsController@store not defined.
(View: D:\Server\htdocs\app...
Lewandowski asked 10/9, 2020 at 18:46
5
Solved
i made simple resume site with laravel 5.4 and i wanna if users type anything except my site name and my site.com/panel automatically redirect to 404 page.
how can i do that?
is there any route t...
Carlina asked 24/4, 2017 at 9:5
21
Solved
I want to return a simple HTML page from a controller, but I get only the name of the file not its content. Why?
This is my controller code:
@RestController
public class HomeController {
@Request...
Day asked 1/8, 2016 at 13:57
7
Solved
I have a controller which implements all routes/URL(s).
I had the idea to offer a generic index over all help-pages.
Is there a way to get all routes defined by a controller (from within a control...
Lineolate asked 11/4, 2013 at 8:14
5
I just tried loading a view using a route like so:
route.php
Route::get("/page", function(){
return View::make("dir.page");
});
controller.php
View::make("/page");
...and an error was thrown....
Applesauce asked 28/9, 2014 at 15:55
2
I have the following code to import the UICloudSharingController into swift UI but when integrated the first time up it just shows an activity indicator that never stops and then the second time it...
Pinchcock asked 1/8, 2019 at 13:53
9
Solved
I want to validation my form, but this not work.
My entity class
import java.io.Serializable;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax....
Simitar asked 24/11, 2014 at 18:36
4
Solved
I cant seem to locate where the error is coming from as the app compiled with Found 0 errors. Watching for file changes. I have seen similar resolve on StackOverflow but none seem to address the is...
Colley asked 19/4, 2020 at 14:51
3
Solved
I need to execute shell commands from controller , but not only for files inside the project , ex. system('rm /var/www/html/test.html') or system('sudo unzip /var/www/html/test.zip');
I call the f...
Yellowthroat asked 19/1, 2019 at 10:14
13
Solved
I have code in my controller like so:
[Route("api/deliveryitems/InsertIntoPPTData/{stringifiedRecord}")]
...and I'm calling it via Postman like so:
http://localhost:21609/api/deliveryitems/Ins...
Arachnid asked 15/7, 2014 at 22:41
3
Solved
This is what I use at the moment to create Controller and Model
php artisan make:controller API/name_of_controller --api --model=name_of_model
then create a migration
php artisan make:migration...
Manumission asked 6/4, 2020 at 3:22
6
Solved
I have a resource called Books. It's listed as a resource properly in my routes file.
I have a new action, which gives the new view the standard:
@book = Book.new
On the model, there are some a...
Quadrinomial asked 23/1, 2013 at 21:52
© 2022 - 2025 — McMap. All rights reserved.