When using $this you are using the object constructed... you are just making the calls from inside that object It's made that way so you don't have to worry about what name was the object given when its instance was created (part of the whole encapsulation concept)
And also, we aren't bashing him, it's just going to be quite a pain in the ass if you don't know a lot of one of the main pillars of the framework, which is oop and how it's implemented in php4 and 5 ---------- Forwarded message ---------- From: maf <[email protected]> Date: 2009/7/9 Subject: Re: why so much $this-> To: Carlos Gonzalez Lavin <[email protected]> this is ridiculous. he just asked a question. And he's right. $this-> is a ridiculous syntax. Why not use have the object constructed? and then it's use the object name from there. On Jul 9, 7:43 am, Carlos Gonzalez Lavin <[email protected]> wrote: > Or the basics of OOP for that matter > > 2009/7/8 Miles J <[email protected]> > > > > > Perhaps you shouldn't be working in Cake, if you dont know the basics > > of PHP5, better yet PHP4. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
