$value ){
if($key%2 == 0) {
$values[] = $value;
} else {
$keys[] = $value;
}
}
if($page['control']){
$page['params'] = array_combine($values, $keys);
}else {
$page['params'] = array_combine($keys, $values);
}
}
//verification de l'existence de la page dans les controlleurs
if($page['control']){
$pageFile = TRAITEMENT_PATH . DIRECTORY_SEPARATOR . $page['name'] . '.php';
}else {
$pageFile = CONTROLLERS_PATH . DIRECTORY_SEPARATOR . $page['name'] . '.php';
}
if(!file_exists($pageFile)){
$page['name'] = 'error';
}
$this->page = $page;
}
}