Questions tagged as 'controller'

0
answers

Validate data and generate temporary password - cakePHP

Good morning, I need to create a function that validates the fields of the client and compares to see if they are correct if they are, generate a temporary password. Below is my code. function _gerar_senha_validando_campos(){ if...
asked by 06.10.2017 / 14:16
1
answer

When invoking controller in codeigniter, it always seems to be passing through "Welcome"

I'm doing a simple PHP application with codeigniter, where I'm trying to access a controller, and apparently whenever I call that controller, it goes through the welcome example: localhost/estudando/Login/login generates the same result as:...
asked by 18.10.2017 / 19:53
0
answers

Call Controller Search Action

I have an Action in My controller that calls a Service that does a Search using Stored Procedure and returns me a List. I made the form in the View to call this Action, only it is not calling Follow the Codes for each Process Search Form &l...
asked by 02.10.2017 / 14:27
0
answers

Laravel Problem with passing parameters to Controllers

So I have a relevant problem. I need to create a link to the controller.edit to edit clear a value in the database. I've tried practically everything. But I keep getting an error:    htmlspecialchars () expects parameter 1 to be string, array...
asked by 08.10.2017 / 20:47
1
answer

Angular + requirejs Controller registry error

I'm starting an application with Angular + RequireJs. See below Main.js ;(function (doc, undefined) { 'use strict'; var $scriptDefault = doc.querySelector('[data-js="script-default"]'); var BASE_URL = $scriptDefault.getAttribute('data-base...
asked by 18.08.2017 / 03:50
1
answer

Rails link to dynamic

I have the following question, in my controller there is a variable that picks which model the guy is coming from and sends it to the view. I would like to create a link from this variable type: link_to @link (variable: @variavel), in this pa...
asked by 29.07.2017 / 23:24
1
answer

RedirectToAction in JavaScript does not work

After a validation I call the controller in the action (Add) to add a new record through javascript. If the insertion succeeds I give RedirectToAction to the index of this same controller passing the id of the profile that I just regis...
asked by 31.07.2017 / 15:32
2
answers

Problem Handling a list of Objects in jsp

I'm trying to troubleshoot a list that comes from my controller in my jsp I believe I am not using the right way to treat and go through this list. Follow my controller that creates the list. @RequestMapping(value = "/show/{id}", method = R...
asked by 12.06.2017 / 15:12
2
answers

loading date time without javascript

I wanted to know if it is possible to send direct from the controller, for example the current date and time of the system without using javascript. Ex: <div class="form-group"> @Html.LabelFor(model => model.DataAvaliacao, htmlAtt...
asked by 01.02.2017 / 00:54
1
answer

Access controller function by policy

Hello, I have a ng-click ("alterardata ();") rule and the controller that calls this directive has this function by default but the problem is that I click on the button and it does not work I put another button on the main page and it works   ...
asked by 17.02.2017 / 21:44