Permalink
Browse files

Updated to work with Slim 2.X

  • Loading branch information...
briannesbitt committed Dec 5, 2012
1 parent ec1e6a4 commit a06f78fffaecf57c39a6e249ac48651dce170643
Showing with 47 additions and 7 deletions.
  1. +1 −1 composer.json
  2. +43 −3 composer.lock
  3. +2 −2 index.php
  4. +1 −1 readme.markdown
View
@@ -1,5 +1,5 @@
{
"require": {
"slim/slim": "1.6.*"
"slim/slim": "2.*"
}
}
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -1,9 +1,9 @@
<?php
require 'vendor/autoload.php';
$app = new Slim();
$app = new \Slim\Slim();
$app->add(new Slim_Middleware_SessionCookie(array('secret' => 'myappsecret')));
$app->add(new \Slim\Middleware\SessionCookie(array('secret' => 'myappsecret')));
$authenticate = function ($app) {
return function () use ($app) {
View
@@ -10,7 +10,7 @@ In response to http://help.slimframework.com/discussions/questions/341-loginlogo
Launch browser to http://127.0.0.1
This application uses [route middleware](http://www.slimframework.com/documentation/stable#routing-middleware) for authentication and a [slim.before.dispatch hook](http://www.slimframework.com/documentation/stable#hooks-default) to set a `$user` variable for all views if in fact the user is logged in.
This application uses [route middleware](http://docs.slimframework.com/pages/routing-middleware/) for authentication and a [slim.before.dispatch hook](http://docs.slimframework.com/pages/hooks-overview/) to set a `$user` variable for all views if in fact the user is logged in.
## Public pages

0 comments on commit a06f78f

Please sign in to comment.