Questions tagged as 'slim'

1
answer

Route with the character "."

Personal I need to create a route in which a parameter of it is a file name with the extension. How do I create this? Ex. link I have created so but of error because of the point before the PDF. $app->get('/download/:arquivo', function...
asked by 09.01.2016 / 18:17
0
answers

Slim 3 Framework - Hosted in subdirectory routes incorrectly

I have an api hosted on the local development machine in the following directory: root/www/api/v2 If I access serving through apache, my routes are not recognized, not even by link nor by link If I access directly through php -S 0.0...
asked by 07.10.2015 / 20:01
1
answer

Get parameter with Slim Framework 3

I need help getting the parameter id at the moment the URI is called, passing it to container . Follow the code below: $this->get('/{id}', function($request, $response, $args) { return $response->withJson($this->get(...
asked by 26.01.2016 / 23:53
2
answers

Saving to the database

I need to save a form to the bank, with several input fields. Someone has an example of how you would pass the fields. I am using the framework AngularJS (If you need to transform them into an array or use json encode). This is the part of...
asked by 12.06.2015 / 17:38