Tuesday, November 4, 2008

Re: Returning a model variable

First of all, thank you for the reply.
I know what you mean about the scope of the variable, and that is why
I asked how I can return it. I'm using it in the afterSave callback of
the model.

On Nov 4, 3:34 am, "Marcelo Andrade" <mfandr...@gmail.com> wrote:
> On Mon, Nov 3, 2008 at 10:11 PM, spyros k. <SpyrosKalait...@gmail.com> wrote:
>
> > For example i define $foo in a function in my model, how can i see
> > what is it's value?
>
> I think it's not possible, cause the scope of the variable is
> limited to the funcion in which it's defined.  Maybe you can
> use the session to store the value, but I'm not sure.
>
> Best regards.
> --
> MARCELO DE F. ANDRADE (aka "eleKtron")
> Belem, PA, Amazonia, Brazil
> Linux User #221105
>
> [gus@pará ~]# linkshttp://pa.slackwarebrasil.org/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: