Am 17.11.2011 12:18, schrieb Gerrit:
> It's already called after Model->read()??
Yes, read() find()s the requested record and sets the result to $this->data.
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.c
> I know there is a callback beforeSave, but there is no afterRead.
You were close with afterRead, that I'm not sure how you missed afterFind :)
http://book.cakephp.org/view/1048/Callback-Methods
HTH, Paul
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Ch
Not with you. If you want to perform some logic 'after' a 'find' (there's a
clue there somewhere) put it in the afterFind callback of your model.
Jeremy Burns
Class Outfit
http://www.classoutfit.com
On 17 Nov 2011, at 11:18, Gerrit wrote:
> It's already called after Model->read()??
>
> On 17
It's already called after Model->read()??
On 17 Nov., 12:08, Jeremy Burns | Class Outfit
wrote:
> afterFind?
>
> Jeremy Burns
> Class Outfit
>
> http://www.classoutfit.com
>
> On 17 Nov 2011, at 11:06, Gerrit wrote:
>
>
>
>
>
>
>
> > Hello everybody,
>
> > I try to change the format of a variable
afterFind?
Jeremy Burns
Class Outfit
http://www.classoutfit.com
On 17 Nov 2011, at 11:06, Gerrit wrote:
> Hello everybody,
>
> I try to change the format of a variable after reading and before
> saving. Is there a possibility. I know there is a callback beforeSave,
> but there is no afterRead.
Hello everybody,
I try to change the format of a variable after reading and before
saving. Is there a possibility. I know there is a callback beforeSave,
but there is no afterRead.
Thx.
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakeP