slim Questions

4

I'm trying to access & write my dummy calendar make new functionality of the website but something prevents me from making changes to my dummy calendar. So far when I try to used this code: ...
Acrodont asked 28/3, 2019 at 12:59

3

Solved

I am new to this stuff but I love it. I made a little REST Api using the Slim Framework. Now I would like to have an ongoing documentation about it. I think swagger is the right choice but I have n...
Dumbarton asked 30/4, 2014 at 19:32

6

Solved

I want to get the name of the current I route in a middleware class. Previously (in Slim 2.*) you could fetch the current route like so: $route = $this->app->router->getCurrentRoute(); ...
Hujsak asked 27/12, 2015 at 0:10

12

Axios 0.17.1 .then(function (response) { console.log(response); //console.log(response.status); //It is an error -> SyntaxError: Unexpected token u in JSON at position 0 console.log(JSON.p...
Oneil asked 2/1, 2018 at 14:34

6

Solved

Im using Postman (in Chrome) to test Slim calls but cant figure out how to get any of the posted JSON data. Im submitting raw JSON: {"name":"John Smith", "age":"30", "gender":"male"} With Conte...
Audition asked 2/12, 2013 at 3:51

5

Solved

So basically I have my backbone application making an ajax GET call to my slim php app. It expects JSON dataType in return. $.ajax({ url: './myroute', type: 'GET', dataType: "json", data: { us...
Esmeraldaesmerelda asked 4/1, 2013 at 3:14

3

I'm trying to download a file using the Slim 3 PHP Framework. Slim 2 was fairly straight forward, as I'm sure Slim 3 is too, but I just don't get it. Any help would be appreciated. Based on the do...
Rosemonde asked 14/3, 2016 at 17:41

10

Solved

I'm using Slim PHP as a framework for a RESTful API. How do I grab GET params from the URL in Slim PHP? For example, if I wanted to use the following: http://api.example.com/dataset/schools?zip=999...
Tko asked 14/11, 2011 at 16:53

9

Solved

I have created a basic RESTful service with the SLIM PHP framework and now I'm trying to wire it up so that I can access the service from an Angular.js project. I have read that Angular supports CO...
Erased asked 22/1, 2013 at 20:45

2

I'm working on PHP + Slim Framework. I have to migrate MySQL to SQL Server. There is something wrong with the return result from SELECT statement. Here is my example data, ╔════╦═══════╦═══════════...
Mayfield asked 18/7, 2017 at 14:31

3

Solved

I'm trying to do something with monolog that I'm not sure it's possible. So I was thinking of a practical way to organize the log files. First I thought to have 3 different files, INFO, WARNING an...
Snuggle asked 12/5, 2016 at 9:36

3

Solved

I'm just a newbie in the Slim framework. I've written one API using Slim framework. A POST request is coming to this API from an iPhone app. This POST request is in JSON format. But I'm not abl...
Sharondasharos asked 21/1, 2015 at 17:38

1

My first ever Stack Overflow Question - here it goes! I've encoded a Firebase JWT token to authenticate a 'buyer' in my PHP Slim API. It encodes correctly and generates a JWT token in Postman, Post...
Vitale asked 17/5, 2022 at 17:3

5

I'm creating a new Slim project and getting the following error: Slim Application Error: The application could not run because of the following error: Error Details Type: Slim\Exception\HttpNotFo...
Peccant asked 19/8, 2019 at 13:56

1

Solved

Preface: What is Paseto?: https://developer.okta.com/blog/2019/10/17/a-thorough-introduction-to-paseto I am using the PHP library for Paseto from here I am using the Node.js Paseto lib from here...
Multilingual asked 27/1, 2020 at 22:46

3

I have a problem with my python code that uses tf.contrib.slim functionalities and no longer works after upgrading to tensorflow to 2.0. How can I upgrade the following to tf 2.0: import tensorf...
Disjunction asked 30/10, 2019 at 15:10

2

Solved

I need to get all registed routes to work with into a controller. In slim 3 it was possible to get the router with $router = $container->get('router'); $routes = $router->getRoutes(); Wit...
Expansion asked 10/1, 2020 at 11:3

3

Solved

I'm using Eloquent in combination with Slim Framework to build a small API. For some reason, I am getting this error, and I can't locate the problem: Target [Illuminate\Contracts\Debug\ExceptionHan...
Euglena asked 23/12, 2016 at 16:15

3

I'm using Slim Framework with Illuminate Database. I want to make JOIN query with USING clause. Let's say given Sakila database. Diagram: How to make join with USING clause (not ON) in eloquent mo...
Inveterate asked 19/1, 2018 at 19:38

4

Solved

I am trying to use controller in Slim however keep getting the error PHP Catchable fatal error: Argument 1 passed to TopPageController::__construct() must be an instance of ContainerInterface, in...
Eliaseliason asked 19/6, 2016 at 10:42

2

Can anyone explain if there are any significant advantages or disadvantages when choosing to implement features such as authentication or caching etc using hooks as opposed to using middleware? For...
Hilltop asked 30/9, 2013 at 10:25

8

I've been using Slim Framework 2 for a while but want to switch to the newest version 3. When reading the upgrade guide, I was a bit bummed about them simply stating that "cookies has been removed ...
Folderol asked 7/2, 2016 at 18:42

1

I using HttpBasicAuthentication from Slim/PHP to protect access to my "/login" route, after validate access a JWT will be create to give access to all routes. So I wanna to generate a cus...
Fonzie asked 28/9, 2020 at 18:43

2

Solved

I created a project with Slim 3 and Twig using their simplest examples. Folder structure is as follows: - public - index.php - style.css App code in index.php is as follows: <?php require...
Stilu asked 4/10, 2017 at 15:22

3

Solved

Hi i am new to slim i stuck on this anyone help please routes.php $app->get('/', 'UserController:index'); dependencis.php $container['src\UserController'] = function ($container) { return ...
Melvamelvena asked 14/2, 2017 at 7:49

© 2022 - 2024 — McMap. All rights reserved.