Questions tagged as 'controller'

0
answers

Filters on asp.net mvc

I am trying to make some filters that as I select one, I look for the records with that data and if I select another filter the list of records will be shortened. This is my code, it does not mark me any errors when compiling, but when I select...
asked by 22.03.2018 / 08:33
2
answers

Update database from View in MVC asp.net Core 2.0

I hope to express myself clearly and be able to get some help. I'm stuck with updating some fields in my database table from the View. Currently I could make it work but only update the data of the first result. How should it work? Payment...
asked by 15.02.2018 / 22:40
0
answers

createQueryBuilder return a well-formatted JSON

Good, I have an action in my controller that what it does is collect the records of the entity Address and make a Join with the City entity to obtain the name of the city (City entity field name), for this I have this code that works but I retur...
asked by 02.02.2018 / 13:17
2
answers

The controller does not receive a laravel argument 5.3

In the view: {!! Form::model($evento,['route'=>['eventos.update',$evento->id], 'method'=>'PUT','files'=> true])!!} @include('eventos.form.editar') {!! Form::submit('Editar',['class'=>'btn btn-primary']) !!} {!! Form::close() !!}...
asked by 17.01.2018 / 02:33
1
answer

Why does not the class work for me, Class 'Image' not found?

use Image; $empresa= empresa::find($id); $empresa->fill($request->all()); if ($request->hasFile('logo')) { $imagen=$request->file('logo'); $image_name = time(). '.'. $imagen->getClientOriginalName...
asked by 26.11.2017 / 04:04
0
answers

Translate a sentence from Mysql to to Eloquent, laravel drivers 5.4

Hello I still do not know much about how to pass the queries to laravel, I have the following (which runs perfectly what I want in Mysql): query in mysql    'select distinct a.temario as Event, count (b.id) as Participants from   events a,...
asked by 04.11.2017 / 18:05
0
answers

Problem when creating a "New element with scaffold" in asp.NET MVC

Good morning. I've been following a tutorial from "EF Database First with ASP.NET MVC" and I've been stuck on this part , I need help, I'm pretty new to this topic. Greetings.     
asked by 22.09.2017 / 06:27
0
answers

Call java controller from AngularJs

How about, my situation is as follows. I have the html in which I send my Angularjs, however when calling the java Controller from the factory with $ http, it marks me "not found" in the path of the url, in the conttoller is the @RequestMapping,...
asked by 11.09.2017 / 05:16
1
answer

control the access of users to a [closed] action method

I have a web system that provides access to 3 types of user (Student, Teacher and Admin) in which I want to restrict the access of certain users to an ActionResult of the controllers.     
asked by 11.09.2017 / 08:13
0
answers

send JSON to angle controller

Greetings, I am creating an editing environment for use cases, I use the FabricJS library. To create the elements of the diagram I use the following code: (I use images) var canvas = new fabric.Canvas('pizarra'); var HideControls = { '...
asked by 07.08.2017 / 19:42