Questions tagged as 'slim'

1
answer

SlimFramework: Method not allowed. Must be one of: GET

I'm having trouble resolving an error that is occurring in slim framework . I have a contact page that is accessed / p / contact , after accessing and clicking the submit button, it tries to send <form> via POST to the action...
asked by 07.03.2017 / 23:42
1
answer

Use on-route controller method with Slim

I have a controller called CardController with several methods inside it, but I need to pass some data to these methods via parameter. Currently I can only access the methods directly as the second example $app->group('/v1', functi...
asked by 26.06.2018 / 21:44
1
answer

Keep id and id_user equal in updateOrCreate

Hi, I am trying to make a updateOrCreate : $eventos = Eventos::updateOrCreate( ["id" => $id, "id_usuario" => $id_usuario], ["nome" => $nome, "descricao" => $descricao] ); The problem is that when doing update...
asked by 02.02.2018 / 14:19
1
answer

Configure Slim Framework and Apache 2

Hello, good afternoon. Recently I hired linux hosting. My site uses the Slim Framework, but I am not getting access to its routes when it is in production, but at localhost xampp, it was working normally. Slim Routes for testing (not getti...
asked by 09.01.2017 / 18:10
1
answer

Problems with Paging in SLIM with Pager

How to make page change using Pear-Pager in SLIM Framework? The code for router is: $app->get('/imoveis(/:pg)', function($pg = '') use($app) { $imoveis = array('casa 1', 'casa 2', 'casa 3', 'casa 4', 'casa 5', 'casa 6', 'c...
asked by 20.02.2014 / 17:52
0
answers

curl within another curl to save images

I have an api in Slim Framework, inside the "Service A" api I am using a curl to call "Service B" api, this "Service B" downloads images through the url of them using another curl, he runs "Service A" and calls "Service B", he successfully upset...
asked by 24.09.2018 / 20:24
0
answers

API Slim returns error only with AJAX request

Hello, I developed an API using the Slim Framework and testing one of the endpoints that with Postman works perfectly but when I do the AJAX request, although it is sending exactly the same data that I send with postman, it seems that the data do...
asked by 03.11.2017 / 17:23
1
answer

Routes with slim PHP framework [duplicate]

Good afternoon, I have almost no experience with slim framework and I am giving a study by bookSlim . I downloaded it via composer and installed version 3.8 and it had some differences. I tried to create a simple route, but it only works when...
asked by 06.10.2017 / 19:32
1
answer

Good Practices in APIS Rest Full with PHP and Doctrine ORM 2

Currently we have a system that uses Doctrine ORM2, we have our Entities, and our DAOS themes, within our DAOS classes we have several methods that we use to make queries, Change, Insert and Delete Data in the database. > We've created some pr...
asked by 19.09.2017 / 13:06
0
answers

Server error function get () on null

The server log reported the following error: Notice :    Undefined variable: app in C: \ xxxx \ api \ v1 \ routers \ Schedule.php on line   28 Fatal error :    Call to a member function get () on null in   /home/xxx/public_html/pr...
asked by 04.09.2017 / 10:00