Anomalie #2539
Assurer Compatiblité avec Php 5.4
Status: | Fermé | Start date: | 12/05/2014 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | Etienne Pallier | % Done: | 100% | |
Category: | - | Spent time: | - | |
Target version: | version 1.3 |
Description
Corrections d'erreurs faites avec Elodie :
- Non-static CakeRequest::data() should be not called statically AppController (736)
=>
$this->set('mydata', $this->request->data[$this->modelClass]);
//$this->set('mydata', CakeRequest::data($this->modelClass));
=> correction dans Controller/AppController.php
Et si on intervertit les lignes :
Undefined index: Page [APP/Controller/AppController.php, line 735]
Corrige :
$mydata = isset($this->request->data[$this->modelClass]) ? $this->request->data[$this->modelClass]:array() ;
$this->set('mydata', $mydata);
- Declaration of Utilisateurs::beforeSave() should be compatible with %Model::beforeSave($options = Array())
AppController (180)
=> correction dans Model/Utilisateurs.php
- Declaration of Utilisateurs::delete() should be compatible with %Controller::delete($id, $name, $from)
=> correction dans Controller/UtilisateursController.php
Erreurs apres connexion :
- Declaration of Materiel::beforeSave() should be compatible with Model::beforeSave($options = Array)
APP/Model/Materiel.php, line 219]
=> correction dans Model/Materiel.php
- Declaration of MaterielsController::delete() should be compatible with AppController::delete($id, $name, $from = 'index') [APP/Controller/MaterielsController.php, line 9]
Corrige dans app/Controller ttes les methodes delete appelee par les prog .php Suivi et Emprunt.