PHP4 allows class methods to be treated as static methods as long as
$this isn't referenced. Yup, it's silly. Once the PHP5-only version of
Cake is released, all of that stuff will (hopefully!) disappear. It's
not a very good practice to use the static operator (::) in PHP4, but
it works.

- Jamie

On Oct 13, 9:18 am, yellow1912 <[email protected]> wrote:
> While reading the core code to understand how cakephp works, I had a
> question I couldn't find the answer yet. I don't quite understand how
> the App class methods can be called as static methods, it seems to me
> that the class methods as well as variables were not declared as
> static?
>
> I'm sure I missed some parts of the code, just not sure where to look
> at?
>
> Regards
>
> Raine

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

Reply via email to