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();
...
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...
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...
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...
9
Solved
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...
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...
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...
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...
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...
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...
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...
4
Solved
Slim controller issue : must be an instance of ContainerInterface, instance of Slim\\Container given
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 ...
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...
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...
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
1 Next >
© 2022 - 2024 — McMap. All rights reserved.