06.24
php
saved
MarcMendez
Note
If you use this behavior, $results does not contain retrieved data. But if you put the afterFind in the model, it works
If you use this behavior, $results does not contain retrieved data. But if you put the afterFind in the model, it works
- <?php
- // This is the Behavior I want to use in my model
- class TransactionBehavior extends ModelBehavior
- {
- function afterFind($results, $primaryKey = false)
- {
- return $results;
- }
- }
- ?>
- <?php
- // This is the model
- class Essai extends AppModel {
- var $name = 'Essai';
- }
- ?>
Parsed in 0.022 seconds, using GeSHi 1.0.7.14