public function defaultAction() { // On vérifie si l'utilisateur connecté est bien un admin $this->isAdmin(); $O_userMapper = new UserMapper(); $I_nbrUser = $O_userMapper->countId(); $O_operatorMapper = new OperatorMapper(); $I_nbrOperator = $O_operatorMapper->countId(); $O_inspectorMapper = new InspectorMapper(); $I_nbrInspector = $O_inspectorMapper->countId(); $O_profileMapper = new ProfileMapper(); $I_nbrProfile = $O_profileMapper->countId(); Buffer::flushBuffer('user/default', array('nbrUser' => $I_nbrUser, 'nbrOperator' => $I_nbrOperator, 'nbrInspector' => $I_nbrInspector, 'nbrProfile' => $I_nbrProfile)); }