I have a Cakephp 2 model with a class constant:
class Person extends AppModel
{
const NAME = 'MyName';
}
How can i access this class constant into the controller method ?
I try :
public function SayName( $id )
{
var_dump($this->Person->NAME);
die;
}
But the result was : NULL