Most voted "slimframework" questions
31 questions
Sort by count of
-
3
votes1
answer1127
viewsJSON Restful API Accents
Good morning, everyone, I am creating an API for study, but I have some problems with accents. When I do a search, I have an answer of not found. Goes down a test. There would be some solution for…
-
2
votes1
answer211
viewsDuplicating menu bootstrap
I am Noob in web development and need a little help from colleagues, if possible. I’m making a website, using bootstrap, and I came across a little problem. I have two drop-down menus and when I…
-
2
votes1
answer768
viewsPHP CURL Asynchronous
I have a PHP file that makes a POST request via Curl to another PHP file, I need to put this request inside a loop and make a 10 request at once without worrying about the return, there is a way to…
-
2
votes0
answers109
viewsWhy does Slim Framework work on my computer but not on the Internet server?
index php. <?php require_once"header.php"; ?> <?php use Psr\Http\Message\ResponseInterface as Response; use Psr\Http\Message\ServerRequestInterface as Request; use Slim\Factory\AppFactory;…
-
1
votes2
answers401
viewsProblem with json slim framework
I am making an api to do the integration of two different systems, the system sends me the following json: cJson = [{"TESTE": "1"}] I spent 3 days with a problem because I was not able to catch the…
-
1
votes1
answer1626
views"Unknown: Failed Opening required" error while following slimphp manual
I’m testing the Slim Framework on a machine with Windows 10, already in the first instructions I received the error: Fatal error: Unknown: Failed opening required 'public\public/index.php'…
-
1
votes2
answers2270
viewsRequest blocked by CORS Policy
I’m making an API with Slim Framework and when I test the answer with Postman everything works very well, but when I put it on the server and tried to make an ajax call to test I got the error…
-
1
votes1
answer2140
viewsSlim PHP Problem with CORS
I’m trying to make a request on the server but I’m having trouble configuring the CORS, the api was developed with the Slim Php framework and I am using middleware PSR-7 and PSR-15 CORS middleware ,…
-
1
votes0
answers135
viewsHow to configure the Slim 3 passthrough?
I’m trying to build a simple API for study with Slim Framework and Jwtauthentication. In case my path /auth returns a JSON containing the JWT token that will be used to access the other paths. But…
-
1
votes0
answers81
viewsCurl inside another Url to save images
I have an api in Slim Framework, within the "Service A" of the api I am using a Curl to call the "Service B" of the api, this "Service B" downloads images by their url using another Curl, it runs…
-
1
votes3
answers385
viewsCalculate values in sub array [PHP]
I have an array with items, and each with a sub-array where we have the values to be added, I’m trying to make each sub-array have its sum returned, and display the following result.. //Esse seria a…
-
1
votes1
answer1073
viewsSlim Framework 4 with Eloquent ORM
I am using the Slim-Framework in version 4 for api creation and would like to use together Eloquent to facilitate manipulation with the database. But I couldn’t find any material/example of how to…
-
0
votes2
answers298
viewsError installing Slim framework
How to fix the error below by using Composer. Code of Composer.json already created in bin folder\ : { "require": { "slim/slim": "2.*" } }…
-
0
votes1
answer585
viewsSlim framework error: called require.. /Slim/Slim/Slim.php';
Error creating when calling Slim.php function Code: <?php require '../Slim/Slim/Slim.php'; \Slim\Slim::registerAutoloader(); $app = new \Slim\Slim();…
-
0
votes1
answer95
viewsHow to Deploy Api with Composer / Slimframework
I have an api working on localhost how do I send it to my ftp? I have these folders, downloaded with Composer slimframwork just send everything?…
-
0
votes1
answer40
viewsWeb service for web/android
I have the following web service $app->get('/alunos', function(){ require_once('db/config.php'); foreach ($db->alunos() ->order("nome") as $row){ $data[]=$row; } echo json_encode($data,…
-
0
votes1
answer357
viewsRequest ajax with Slim
I have a form and the following requisition: jQuery('#cadastro').submit(function() { var dados = jQuery(this).serialize(); jQuery.ajax({ type: "POST", url: "/cadastrar", data: dados, beforeSend(xhr)…
-
0
votes0
answers42
viewsTesting Magic Methods in PHP UNIT
Hello. I need to test the magic methods in PHP UNIT. I’m using the Slim Framework That it’s them __set() __get() __construct() __invoke() handle()
-
0
votes1
answer261
viewsAccess built-in php server from Docker in Host
Good people to studying Docker here and along with this I want to create a php server (by your built-in server) and then access this server from my host machine. I executed the following command:…
-
0
votes0
answers793
viewsUncaught Error: Class not found - Slim Framework
I’m getting this mistake: Fatal error: Uncaught Error: Class 'CrudUser' not found in /home/doupenglish/www/api/index.php:27 Stack trace: #0 [internal function]:…
-
0
votes1
answer121
viewsEmail form does not only work on smartphones!
Hey, guys! All right? This is my first post here. I’m in a bit of a silly problem, but three, four days ago! I started to develop recently and this is my first commercial project. It’s practically…
-
0
votes0
answers29
viewsError generate table data
My front does not take the data to list. However the data is entered perfectly. How to solve? <?php require_once 'vendor/autoload.php'; $app = new \Slim\Slim(); $db = new…
-
0
votes0
answers228
viewsCorrect way to pass headers to the Httpheaders Object
I’m trying to figure out how to pass headers the correct way to instantiate an object HttpHeaders in the Angular 5. I have the following code: postApi(body: any, route: string) { return new…
-
0
votes1
answer174
viewsCompare two tables in mysql by grouping the main table and listing the result of the second table
Hello! I will explain from the beginning.. I am comparing the following tables accounts with clientes select uses the user_id to find all customers with same users_id2 on the table clientes as…
-
0
votes0
answers89
viewsSlim Framework does not recognize the saved sessions
Guys, my directory in the slim framework was default.. /public /vendor /src /cache /app among other folders.. and within the /public A index.php was calling the other files and folder normally..…
-
0
votes1
answer46
viewsJSON does not show up when I re-file
I am developing a PHP API with Slim Framework, but when I require the class general it should make a query in the database and return me the data of this table in JSON. This is the connection class…
-
0
votes3
answers574
viewsSLIM FRAMEWORK - 404 PAGE NOT FOUND
Hello, good morning. I am trying to make a route using SLIM and I can normally access via URL and internally(via menu) the pages with SLIM configured, but when I login to the site, it does not send…
-
0
votes1
answer24
viewsSlimframeworrk only accesses by duplicating bars in the URL
I am using Slimframework and I have the following code: <?php use Psr\Http\Message\ServerRequestInterface as Request; use Psr\Http\Message\ResponseInterface as Response; use…
-
0
votes1
answer38
viewsHow to use PDO in slimfamework 4?
Could someone tell me how I instate PDO in a file in the slim framework using the app->get? I did in the configuration in the file Settings and dependencies but I do not know how to call the…
-
0
votes2
answers293
viewsSlim framework is not directing the login route
Good afternoon! I am doing a PHP7 course project, but I have the following problem: Fatal error: Uncaught Error: Call to undefined function Slim\Http\get_magic_quotes_gpc() in…
-
-2
votes1
answer20
viewsPDO returns only one rewrite
Hello. My algorithm is only returning a record from the database. I have reviewed the code several times, but I cannot understand the reason. I’m using the Slim Framework. Follows the code: index…