Code Monkey home page Code Monkey logo

slim3's Introduction

Slim3 Build Status

maven

$ mvn archetype:generate -DarchetypeCatalog=http://slim3.github.com/slim3/archetype-catalog.xml

slim3's People

Contributors

ryopei avatar shin1ogawa avatar sinmetal avatar soundtricker avatar sue445 avatar vvakame avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

slim3's Issues

Redirect to a different domain

I'm writing an SSO application in Slim that takes a passed in redirect_url (GET/POST parameter), allows the user to sign in (if they haven't signed in already), authenticates, and then (if authentication succeeds), redirects the user back to the passed in redirect_url along with the user's ID and name. I tried redirecting with:

 header("Location: " . $allPostPutVars['redirect_url']);
 die();

But this results in the user going to:

http://sso.my-domain.org/='[redirect url is here]'

Looking around on the net, people suggested using:

$this->m_response->withRedirect($allPostPutVars['redirect_url']);

However, this had no effect at all.

What do I need to do in order to be able to redirect to a provided url?

ModelRef equals fails when key is null

The following test fails

@Test
public void testEquals() {
    ModelRef<T> m1 = new ModelRef<>();
    ModelRef<T> m2 = new ModelRef<>();
    assertEquals("m1 and m2 are identical",m1, m2);
}

Can't get X-Access-Token using $request

How do I get X-Access-Token using \Slim\Http\Request object?

I got it working only like this:

    $request_headers = getallheaders();
    $accessToken = $request_headers["X-Access-Token"];

Route Expression for list with pattern?

Anyone know if its possible to combine these 2 type of route expressions?

The Slim3 documentation gives this example:
$app = new \Slim\App();
$app->any('/books/[{id}]', function ($request, $response, $args) {
// Apply changes to books or book identified by $args['id'] if specified.
// To check which method is used: $request->getMethod();
});

Is the regex format "[{id}]" just semantical? Do the outer brackets actually do anything to parse the values?

What is the best practice for accepting one or more ids of a specific format?

I tried using this pattern but it does not work...
/books/{[id:[0-9]+]}

I'm looking for "slim3-gen-jsr269.jar".

I searched for this but it exists. https://mvnrepository.com/artifact/org.slim3/slim3-gen

I thought there was a source file on this site and tried running the command.
$ mvn archetype:generate -DarchetypeCatalog=http://slim3.github.com/slim3/archetype-catalog.xml

I wondered if it would be created when I run this mvn command, but I get an error.😫

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.2.1:generate (default-cli) on project slim3-root: archetypeCatalog 'http://slim3.github.com/slim3/archetype-catalog.xml' is not supported anymore. Please read the plugin documentation for details.

I want to verify the operation of an old program with java8, but I'm stuck because I don't have "slim3-gen-jsr269.jar".
Could you tell me how to build it?

modelMetaのDate型のlessThanについて

検索条件で、ある日時よりも前(未満)としたくて、lessThan()を使いました。

こんな感じのコードでフィルターをかけたのですが、

Calendar tomorrow = ”Thu Jul 18 00:00:00 JST 2013をセットする”;
Datastore.query(modelMeta).filter(modelMeta.start_time.lessThan(tomorrow.getTime()));

同じ時間のデータがマッチしてしまいました。
Thu Jul 18 00:00:00 JST 2013

これってBugですか?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.