Looks like your error reporting is turned up higher than it has been in the past, as I believe the error you're getting is an E_STRICT
error. If you changed your function home()
method to public static function home()
you'd no longer get the error.
That said, a better solution might be to try the new(-ish) controller feature in Slim 2.4.0. Your new route would look like this:
$app->get('/', '\Pages:home');