Questions tagged as 'controller'

2
answers

Ajax does not reach the controller in cakephp

Hello, I have the following codes: Routes Router::connect('/', array('controller' => 'pages', 'action' => 'home', 'home')); Router::connect('/post', array('controller' => 'Posts', 'action' => 'display', 'Posts/index')); Router::con...
asked by 28.04.2018 / 00:56
1
answer

Avoid resubmitting form in cake php

I explain the problem, the user fills out the form and if you press f5 or update the page, the data you just entered is reinserted exactly the same, one of the options would be to validate that the id is not repeated, but in this case It is not...
asked by 11.04.2018 / 22:30
0
answers

Ajax in cake php

I want to make a form that is constantly reviewed by a controller, but by means of an ajax, that is, my field is the user's, and I want to validate if the user already exists, but what I have said to me: Notice (8): Undefined variable: ajax [A...
asked by 02.04.2018 / 16:34
0
answers

Laravel without using the Models?

I wanted to make the following query regarding the working mode of Laravel 5.5. Is it possible to work or develop a project with Laravel without using the Models, that is, only using the controllers to obtain and send the data to the views (u...
asked by 21.01.2018 / 16:25
1
answer

laravel pluck square brackets and double quotes

I have the following function that shows a student's course public function show($id) { $alumno = Alumno::find($id); $curso = Matricula::where('id_alumno',$id)->get()->pluck('curso_alumno'); dd($curso); return view('alumn...
asked by 15.06.2017 / 01:26
1
answer

C # capture windows service messages

I am developing a small application in C # to "manipulate" windows services (specifically apache). I have already managed to start, stop and other operations. What I now want is to obtain the (messages) results that the service returns....
asked by 17.05.2017 / 16:52
2
answers

Why does my table show the values in this way?

It should be noted that what I want to do is that the table shows the data when the "Start" button is clicked. link package simulador; import java.net.URL; import java.util.ResourceBundle; import javafx.collections.FXCollections; import...
asked by 09.04.2017 / 01:00
1
answer

Problem in a laravel view

How can I show the number of students per course in an index view? These are the relationships in my models Student: public function curso() { return $this->belongsTo(Curso::class,'id_curso','id'); } Course: public functio...
asked by 31.03.2017 / 00:54
0
answers

Driver fails to call PHP model

How about, I'm a bit green in this, I was creating an api with php following the mvc model, I had managed to connect to the base using PDO, I did my controller std, my users ctrl, user model and my index, it works well with only one (users), but...
asked by 16.05.2017 / 03:29
0
answers

Error Http 400 with Spring MVC

I am developing an application with Spring MVC and I have an http 400 request error. The first time I call controller login for a request get redirects me to the jsp login and then the form jsp calls me back to the contro...
asked by 10.01.2017 / 13:22