Slim framework doesn't works

Hello !
I tried to make an API with Slim Framework, but when I launch my url path I a have a blank page, not a 404 error’s page but an totally white page.
Have you any ideas ?
Here my api:

<?php

 require 'class/Slim/Slim.php';
 \Slim\Slim::registerAutoloader();
 //require 'vendor/autoload.php';
 $app = new \Slim\Slim();

 require 'class/CorsSlim.php';

 $corsOptions - array(
   "origin" => "*";
   "exposeHeaders" => array("Content-Type", "X-Requested-With", "X-authentication", "X-client"),
   "allowMethods" => array('GET', 'POST', 'PUT', 'DELETE', 'OPTIONS')
 );

 $cors = new \CorsSlim\CorsSlim($corsOptions);
 $app->add($cors);
 //connexion

 $app->get('/connection/:identifiant/:pass', function($login, $password){
   $serveur = "localhost";
   $dbname = "racehistory";
   $user = "root";
   $mdp = "root";

   $con = mysql_connect($serveur, $user, $mdp);
   mysql_select_db($dbname, $con);
   $data = array();

   $login = htmlspecialchars($login);
   $login = strtolower($login);
   $password = htmlspecialchars($password);

   if(!preg_match("#^[a-z0-9._-]+@[a-z0-9._-]{2,}\.[a-z]{2,4}$#", $login)){
     $errors['email'] = 'adresse mail non valide';
   }
   if(!preg_match("#^(?=.*[A-Z])(?=.*[a-zA-Z])(?=.*\d)([\w]{8,15})$#", $password)){
     $errors['pass'] = 'mot de passe non conforme, majuscule, 8 caractères min';
   }
   if(!empty($errors)){
     $data['success'] = false;
     $data['errors'] = $errors;
   }
   else{
     $event = "SELECT * FROM users WHERE mail='".$login."'";
     //autre event pour la sauvegarde du jeu plus tard
     $even = mysql_query($event);
     while($ret = mysql_fetch_assoc($even)){
       $id = $ret["ID"];
       $mail = $ret["mail"];
       $pass = $ret["password"];
       //sauvegarde jeu
     }
     if($id){
       if($pass == $password){
         echo "test";
         $data['success']= true;
         //good
       }
       else{
         $errors['mail'] = 'Adresse mail introuvable';
         $data['success'] = false;
         $data['errors'] = $errors;
       }
     }
   }

   mysql_close($con);
   echo jscon_encode($data);
 });
 $app->run();
//replace mysql_connect by mysql PDO look at this php
?>

Thank You

First thing first, What version are you using?
If i remember \CorsSlim\CorsSlim should be a class of palanik/CorsSlim package, that is v2 only.
Second, have you seen your apache/application log files?
You are on a 500 page probably =D

PS.
mysql extension is deprecated use PDO, please.
Your code is totally insecure (SQL Injection) here: “SELECT * FROM users WHERE mail=’”.$login."’";

Ok I made a mistake, I just noticed my slim hasn’t installed, so I just did it.
(I don’t know why because I had an .htaccess before ect… and the composer.phar)
So I have version 3.2, I will start again !
I know for PDO but, I have follow a tutorial to make my API, I will apply your advices ! Thank you.
And I look in my apache log files, but no 500 page !

Thank you, I will come back if I have a problem with the API