Questions tagged as 'controller'

1
answer

The import org.springframework.web.bind.annotation.CrossOrigin can not be resolved

I'm not able to import the annotation @CrossOrigin . Ide does not find the required package even though all other annotations are working normally. The error that occurs is this:    The import org.springframework.web.bind.annotation.C...
asked by 08.02.2017 / 23:33
1
answer

Angularjs Controller does not work right

I am giving a basic study on how to create screens using Angularjs and Material, everything going well until I need the controller, it seems that $ scope is not working, I put a console.log at the beginning of the controller and it prints the te...
asked by 11.04.2016 / 01:29
1
answer

Communication between MVC Controllers

I'm having trouble communicating between Controllers each in a different Area , the public methods of the second controller are not available in the first one. Is there any way to do this? Here's the example below: public class AController...
asked by 21.10.2017 / 06:46
1
answer

Administrative Area Controller Codeigniter

I'm developing a site with administrative area. I started it with the new version of Codeigniter 3.1.5. In the main pages would be body of the site, already in the news pages the url would look like this: www.exemplo.com/noticia/visualizar/id...
asked by 19.07.2017 / 21:46
1
answer

How to retrieve parameters in php passed by $ http ({... data: ...?

I have my controller that requests the login: app.factory('LoginService', function($http, $location, SessionService) { return { login: function(data, scope) { $http({ method: 'GET', url: 'http://localhost:88...
asked by 27.11.2016 / 19:25
2
answers

How to pass variables coming from post, save them until the last step and show all values

I have a form that is divided into 10 parts, that is, I'm going to save via post the variables from page to page. However, if you refresh the page all previous variables are lost. How can I solve the problem? Outline: Phase 1 - phase1_v...
asked by 30.09.2015 / 11:17
2
answers

Views with php transition with the controller

I'm new to php, so I've got a lot of it. Even because I have used sublime text with apache and php installed separately (use Ubuntu with OS). Well my question regarding views and php is: I'm not understanding how to transition the controller to...
asked by 17.07.2015 / 01:33
1
answer

Select Betweeen on CakePHP data

I'm trying to select records in a date range. $mesAtual = $this->requestAction(array('controller' => 'compras', 'action' => 'comprasMes'), array('condicoes' => array('Compra.status' => array(1,2), 'Compra.data BETWEEN ? AND ?' =...
asked by 14.07.2015 / 12:20
1
answer

Cookie between controllers

I created the following cookie in the controller Location: $cookie = new \Zend\Http\Header\SetCookie('localidade_id', $localidade->getIdentificador(), time() + 3600); However, when trying to access it in the controller Contact:...
asked by 17.03.2015 / 13:54
2
answers

Pass array of objects via javascript to the controller

How can I pass an array of javascript objects to the controller? JQUERY var array = []; var $linhas = $("#vendaTabela tbody > tr"); $linhas.each(function () { var x = { id: $(".codigo",this).text(), quantidade: $(".quantidad...
asked by 06.03.2015 / 16:18