Questions tagged as 'slim'

1
answer

I can not connect to the MySQL database with Slim

I'm doing a test and I want to connect to the database Tarea2 and show the table EMPLEADO but I can not connect. My user is root , for simplicity of the task I do not have passwords This is my code. $app->get('/EMP...
asked by 09.08.2018 / 21:27
3
answers

Receive variables post and write them in Html

I am receiving data by post from an android system, when responding with echo , this data reaches android. Now I want to use this data to use it in an html page, how can I do it? By the way, I use the Slim framework. <?php req...
asked by 11.03.2016 / 19:38
1
answer

SQLSTATE error [23000] when trying to add a new item to my BD through my api

I am developing a API with slim framework 3 that connects to a local database. The problem is the following, when I try to insert a new element, it throws the following error {"error": {"text": SQLSTATE[23000]: Integrity constr...
asked by 14.02.2018 / 15:48
1
answer

PHP Slim Get POST parameters

I need to get the post parameters with slim framework php, this is my post route: $app->post('/agregar', function ($req, $res) { //obtiene e bodyParsed $data = $req->getParsedBody(); //aca se puede aplicar un forEach para sac...
asked by 03.12.2016 / 14:02
0
answers

Zend Soap server returned a String

Raise a SOAP server using Zend Framework and SlimFramework Soap, the call to wsdl works correctly and the result is in xML but when I call a function, it returns the XML as a string My Code: use Zend\Soap\AutoDiscover; use Zend\Soa...
asked by 18.10.2018 / 16:19
1
answer

PHP Slim3 first steps

Good, I just installed Slim version 3.0 on my local server, I have only one folder vendor where is all your engine ... Some small example of how to start using it, folders, files, it is not necessary to have a database, i...
asked by 01.03.2017 / 12:44
1
answer

Publish REST API in heroku

I need to post a API REST in heroku . I have uploaded the project structure to the hosting with the required git commands. In addition, I created a database in heroku through phpmyadmin . The file .env of the p...
asked by 29.05.2018 / 13:18
1
answer

Online game - 1 vs 1 (IONIC 3 & ANGULAR 5) [closed]

Could someone give me some guidance on how to play online from my application? I've been looking for things but I can not find something with which to consider something similar or something that comes close to what I want to do. Basically...
asked by 16.04.2018 / 21:43
1
answer

Show PrettyPrint JSON in Slim3

I am creating a restful api with the framework Slim3 the data is returned to me with json, but to debug I like more to show the answer with a nicer format. in% pure co_de I do it using json_encode($datos, JSON_PRETTY_PRINT); I hav...
asked by 05.04.2017 / 12:22
1
answer

Error Slim Swift 2

I have a native iOS application, in which I must consume a web service where I send a photo in base 64 to the backend in php with slim framework but I return the following error on the code 64 of the image: recoverable error: Corrupt JPEG...
asked by 01.06.2016 / 22:23