2012-07-26 30 views
2
Strict (2048): Declaration of MeioUploadBehavior::setup() should be compatible with ModelBehavior::setup(Model $model, $config = Array) [APP/Plugin/MeioUpload/Model/Behavior/MeioUploadBehavior.php, line 26] 

Strict (2048): Declaration of MeioUploadBehavior::beforeValidate() should be compatible with ModelBehavior::beforeValidate(Model $model) [APP/Plugin/MeioUpload/Model/Behavior/MeioUploadBehavior.php, line 26] 

Strict (2048): Declaration of MeioUploadBehavior::beforeSave() should be compatible with ModelBehavior::beforeSave(Model $model) [APP/Plugin/MeioUpload/Model/Behavior/MeioUploadBehavior.php, line 26] 

Strict (2048): Declaration of MeioUploadBehavior::afterSave() should be compatible with ModelBehavior::afterSave(Model $model, $created) [APP/Plugin/MeioUpload/Model/Behavior/MeioUploadBehavior.php, line 26] 

Strict (2048): Declaration of MeioUploadBehavior::beforeDelete() should be compatible with ModelBehavior::beforeDelete(Model $model, $cascade = true) [APP/Plugin/MeioUpload/Model/Behavior/MeioUploadBehavior.php, line 26] 

Strict (2048): Declaration of MeioUploadBehavior::afterDelete() should be compatible with ModelBehavior::afterDelete(Model $model) [APP/Plugin/MeioUpload/Model/Behavior/MeioUploadBehavior.php, line 26] 

Anny solution?超級星光大道上傳嚴格色情

+0

你有,你可以與我們分享任何代碼來幫助我們調試? – 2012-07-26 21:24:20

回答

5

MeioUploadBehavior的方法簽名必須與ModelBehavior類的方法簽名相同。

例如,afterDelete方法的方法簽名必須從function afterDelete(&$model)更改爲function afterDelete(Model $model)

3

更改文件MeioUploadBehavior

function beforeValidate(Model $model) 
function beforeSave(Model $model) 
function afterSave(Model $model, $created) 

由:

​​

這種修正是由於CakePHP的版本所做的更改。

問候

@jvo_chile