Hello,
I'm currently implementing a Model Cache behavior. In order to work
without changing other behaviors, components or helpers, I need to
override the default Model::find function, to work like this:
In behavior:
   function find($conditions = null, $fields = array(), $order =
null,
$recursive = null) {
      if (true /*$this->settings[$Model->alias]['auto']*/ )
         return $this->cacheFind(&$Model, $type, $conditions,
$fields,
$order, $recursive);
      return parent::find($type, $conditions, $fields, $order,
$recursive);
   }
but it keeps calling Model::find before. I've tried doing this with
the callbacks, with no luck.
Thanks in advance.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

To unsubscribe, reply using "remove me" as the subject.

Reply via email to