Questions tagged as 'slimframework'

0
answers

Testing Magical Methods in PHP UNIT

Hello. I need to test the magic methods in PHP UNIT. I'm using the Slim Framework framework What are they? __set() __get() __construct() __invoke() handle()     
asked by 14.08.2018 / 18:17
0
answers

Error in htaccess when using https force with invalid return

Hello, I need to force https on my site, but the problem arises of not returning the target link ... I have the following htaccess code ... <IfModule mod_rewrite.c> <IfModule mod_negotiation.c> Options -MultiViews </IfModul...
asked by 31.07.2018 / 23:15
0
answers

Error building controller in Slim framework [Callable App \ Controllers \ HomeController does not exist]

My application in the slim framework is giving error when trying to build a controller ... Details Type: RuntimeException Message: Callable App\Controllers\HomeController does not exist File: D:\xampp\htdocs\projetosWeb\base\vendor\slim\slim...
asked by 09.06.2018 / 08:09
0
answers

Correct way to pass headers to the HttpHeaders Object

I'm trying to figure out how to pass headers correctly when instantiating a HttpHeaders object in Angular 5 . I have the following code: postApi(body: any, route: string) { return new Promise((resolve, reject) => {...
asked by 25.03.2018 / 01:49
0
answers

Slim Framework 2 Using sdk Php Mercadolivre

Hello, When attempting to load the sdk php from the mercadolive in a slim framework 2 project, it returns error 500. This only happens when I start the class, so I think I'm starting wrong, but I've tried it in many ways and it does not sol...
asked by 15.03.2018 / 15:29
0
answers

Error generating table data

My front does not get the data to list. But the data is inserted perfectly. How to solve? <?php require_once 'vendor/autoload.php'; $app = new \Slim\Slim(); $db = new mysqli("localhost","root","","neppo"); $app->get("/cadastro",funct...
asked by 20.12.2017 / 17:35
0
answers

Uncaught Error: Class not found - Slim Framework

I'm getting this error: Fatal error: Uncaught Error: Class 'CrudUser' not found in /home/doupenglish/www/api/index.php:27 Stack trace: #0 [internal function]: Closure->{closure}(Object(Slim\Http\Request), Object(Slim\Http\Response), Array)...
asked by 19.12.2017 / 14:38
1
answer

Access docker's built-in php server on Host

Well, I've been studying docker here and along with that I want to create a php server (by its built-in server) and then access that server from my HOST machine. I ran the following command: docker run -it -p 8080:8080 -v "D:\git\slim-saa:/...
asked by 26.11.2017 / 01:00