Re: Call by reference weirdness across Classes

2008-04-30 Thread wirtsi
I'd say cause you are already within you Bait class ... so $this->foo($xxx) should work On 29 Apr., 02:38, MikeK <[EMAIL PROTECTED]> wrote: > Cmon guys help me out. Why does this not work in cakephp? --~--~-~--~~~---~--~~ You received this message because you ar

Re: Call by reference weirdness across Classes

2008-04-28 Thread MikeK
Cmon guys help me out. Why does this not work in cakephp? --~--~-~--~~~---~--~~ 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,

Re: Call by reference weirdness across Classes

2008-04-28 Thread MikeK
One other bit of data we are running php 4.4.7 --~--~-~--~~~---~--~~ 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

Call by reference weirdness across Classes

2008-04-28 Thread MikeK
This may be more of a PHP issue than Cake but ya'll gurus probably know why this is a problem. In a controller for Bait function foo function test() { Bait::foo($xxx); // works correctly $this->Bait->foo($xxx); // does not work } In Bait model function foo() takes the parm by ref and sets it's