use new Slim version

This commit is contained in:
Uwe Steinmann 2018-12-18 17:57:59 +01:00
parent 24a6938f51
commit 4e87b9612d

View File

@ -2016,8 +2016,9 @@ function echoData() { /* {{{ */
} /* }}} */
//$app = new Slim(array('mode'=>'development', '_session.handler'=>null));
$app = new \Slim\Slim(array('mode'=>'production', '_session.handler'=>null));
$app = new \Slim\App(/*array('mode'=>'production', '_session.handler'=>null)*/);
/*
$app->configureMode('production', function () use ($app) {
$app->config(array(
'log.enable' => false,
@ -2031,7 +2032,7 @@ $app->configureMode('development', function () use ($app) {
'debug' => true
));
});
*/
// use post for create operation
// use get for retrieval operation
// use put for update operation