Questions tagged as 'slim'

1
answer

How to use Filters in Doctrine?

I have the Entities I did in Doctrine, and I also have the DAOS, which is where those queries get. I have an API where the user can use Query Parameters as follows:    link The query returns everything but if user puts this parameter...
asked by 21.09.2017 / 14:46
0
answers

Encapsulate responses from RESTful Web Service requests on the server side

Hello, Developed a RESTful Web-Service in PHP using the framework SLIM and an android application to consume his services. It's working fine, however, GET request responses, which are returned in JSON format, are fully exposed when I access t...
asked by 06.07.2017 / 00:23
1
answer

Website with Slim (Friendly URL)

I can not make my site work. The index page works fine, but the other URLs do not work ... On my computer (Localhost), the site is running normal, only when I send to FTP (I'm using a free Hostinger account) does not work. If I try any...
asked by 13.05.2017 / 23:00
1
answer

SIim withJson () has some character limit to convert an array of objects to Json

I have an array with 700 objects that is being loaded correctly by PHP, but at the time of sending the response to the browser with return $response->withJson() the following error is shown: SyntaxError: JSON.parse: end of data w...
asked by 06.02.2017 / 15:00
1
answer

Problem getting data by ID in API with Slim

I'm trying to create an API with Slim to feed an app, but I came across the following problem: I can get all the db data, but I can not get a specific data. In url: http://localhost/api/ which is where I get all the data, I can return...
asked by 22.09.2016 / 17:06
1
answer

Slim Framework simplexml_load_string parser error

My application sends a string in XML format to the server. $(function() { var xml = "<?xml version='1.0' encoding='UTF-8'?> <note> <to>Tove</to> <from>Jani</from> <heading>Reminder<...
asked by 12.07.2016 / 17:41
1
answer

SlimFramework + PHP-View

I downloaded the Php-View library to use with the Slim Framework 3. x, but I'm not able to do the view return. // Get container $container = $app->getContainer(); // Register component on container $container['view'] = function ($cont...
asked by 22.07.2016 / 21:05
1
answer

Slim Framework with Apache2.4

Good morning. I'm creating an API to make a service available to other applications. I have the following scenario. A system to make the service available. This system has a virtualhost configured. The uri is link . When accessing this url, int...
asked by 07.07.2016 / 16:18
0
answers

Problems with CORS in application using API with Slim framework and angularjs

Good afternoon friends I'm having trouble solving a problem Requisição cross-origin bloqueada: A política de mesma origem (Same Origin Policy) impede a leitura do recurso remoto em http://api.dominio.com.br/exemplo. (Motivo: o cabeçalho...
asked by 07.07.2016 / 20:26
0
answers

AJAX with Slim Frame

Project: link I have a problem with the AJAX request (resources / views / templates / app.twig) ajax - app.twig $('.stars-default').click(function(e) { e.preventDefault(); $.ajax({ url: '../app/Controllers/Poll.php',...
asked by 31.05.2016 / 01:42