I have seen classes called like:
$Class = ClassName::methodName();
and also
$Class = new ClassName();
$Class->methodName();
What is the difference between the two?
The reason I ask is because in CakePHP, the CakeEmail is called like the second example, but all the other classes are called like the first...
e.g. http://book.cakephp.org/2.0/en/core-utility-libraries/email.html and http://book.cakephp.org/2.0/en/core-utility-libraries/security.html