Questions tagged as 'slim3'

0
answers

Slim does not register and does not update the data in mysql

I am creating a REST API with slimframework and a library called fluentPDO but I have problems when registering and updating the data. This is the code snippet of empleado_model.php public function registrar($data) { $data['Password'] =...
asked by 17.03.2018 / 01:51
0
answers

Upload Angular 4 Slim Framework 3

More than a question, I want to share it since it gave me a headache for several days, maybe it is not the best solution but I found it out. ServiceUpload.ts Upload_File(Files:any){ var formData = new FormData(); formData.append("...
asked by 14.03.2018 / 23:51
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
2
answers

Can not use object of type stdClass as array

I am trying to update an object of my bd through my API , I am using Slim Framework 3 but when I execute the postman I get the following error:    Can not use object of type stdClass as array <?php use \P...
asked by 01.03.2018 / 18:29
1
answer

PHP Create Api Rest with drivers in Slim3

I am learning the Slim3 framework to create apis rest / full, I found several examples, for example in routes.php $app->group('/v1', function () { $this->group('/auth', function () { $this->map(['GET', 'POST'], '/login', '...
asked by 06.12.2017 / 12:27
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
0
answers

I am trying to migrate a project from slim v2 to nginx, previously this one in apache on linux

This is my configuration I market 404 error server { listen 80; listen [::]:80; server_name psd2.colsan.edu.mx; root /var/www/psd2.colsan.edu.mx/public; index index.php; try_files $uri /index...
asked by 27.11.2018 / 15:43
1
answer

How to make a delete in SLIM that is a PHP framework?

I want to delete by id and the backend statements in slim v3, I do not know how it is done ... I have the following sentences for example a get that I do I do it in the following way: Thanks in advance! $app->get('/ob...
asked by 18.03.2018 / 01:17