Questions tagged as 'controller'

1
answer

Open a view in a new tab from the Controller in ASP MVC

People, I have a problem, I need to go from the Details view to the DetailsController server, process something and then return to the Details view, but I need to show the content that I processed in a new DetailsPrint window, any ideas...
asked by 08.07.2017 / 21:11
1
answer

Number results of a query in Laravel and MySQL

I'm starting in Laravel and I need your help please. I want to number a column after making a query to the BD. If someone can help me, it would be great: My driver is as follows: $participantes = DB::table('participante') ->selec...
asked by 19.12.2016 / 18:58
1
answer

Directive with controller and parameter in Typescript

I am using Typescript 1.8 + angularjs v.1.5.8 I have a directive that I want to call like this: <div mi-directiva mi-parametro="ctrl.Objeto"> </div> My directive is declared as follows: export class miDirectiva implements n...
asked by 14.09.2016 / 17:29
0
answers

Parameter Type ViewModel to httpget Asp

Good attempt to pass as a parameter to an Action of type HttpGet but this arrives as null: public ActionResult Create(clsGuiaMovimientoVM oFil) but if I send only primitive data, they arrive correctly: public ActionResult Create(string No...
asked by 17.12.2018 / 13:42
1
answer

driver to show contents of the database in symfony3? [closed]

Hello I have saved in the database, complete html codes, I need a controller to show the result of the code in a new page.     
asked by 11.12.2018 / 14:07
1
answer

How do I send the value of a file type input by ajax to be used in the controller?

I have a form which sends the data to the controller through ajax <script> function save() { $.ajax({ type: 'POST', url: '{{url('/user/new')}}', data: { startDat...
asked by 21.11.2018 / 21:03
0
answers

Insert if inside laravel driver

I would like to introduce a simple if () to see when the variable $row->photo is empty simply this if($row->photo){ /// contenido <img> } But I can not implement it without having syntax error someone gives me a hand?...
asked by 08.11.2018 / 21:19
2
answers

Too few arguments to function, 1 passed and exactly 2 expected "

Hello apparently I have an error in my collection controller which already tried everything but still can not find the error, if they could help me it would be a good gesture: /. I am trying to create a collection of an employee so I need your i...
asked by 27.10.2018 / 09:32
1
answer

Not shown datatable in Laravel

For some reason, the data in the table does not appear using DataTables. And if I remove the return view ('home'), I get a query that eats the whole page The home view: <link href="https://cdn.datatables.net/1.10.16/css/jquery.dataTa...
asked by 24.10.2018 / 03:47
0
answers

laravel 5.5 doubt when displaying object or array in view

I'm new at laravel 5.5 (just a few weeks) I have a question and it all starts with an sql query inside the InstitucionController ... public function show($id) { $caso_estudio = CasoEstudio::find($id); $institucion = Institucion::fin...
asked by 11.10.2018 / 00:15