From 2d68012cf45d789b0b0bc581eb1216bef00190c4 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Fri, 5 Feb 2016 08:35:51 +0100 Subject: [PATCH] - [x] [ModuleRequest->getFunctionCaller] Correction semantique du chemin d'amorcage, utilisation de tableau --- manager/ModuleRequest.php | 2 +- view/users.php | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/manager/ModuleRequest.php b/manager/ModuleRequest.php index 5e96e64..8ade7c7 100755 --- a/manager/ModuleRequest.php +++ b/manager/ModuleRequest.php @@ -242,7 +242,7 @@ * */ private function getFunctionCaller(){ - return '\\manager\\module\\'.$this->path['module'].'::'.$this->path['method']; + return array( '\\manager\\module\\'.$this->path['module'], $this->path['method'] ); } diff --git a/view/users.php b/view/users.php index 383a787..065dd5e 100755 --- a/view/users.php +++ b/view/users.php @@ -61,7 +61,10 @@ echo '
'; echo 'Liste des utilisateurs:
'; - var_dump( $users ); + if( $request->error != \manager\ManagerError::Success ) + var_dump( \manager\ManagerError::explicit($request->error) ); + else + var_dump( $users ); echo '
'; }