CakePHP Defining Constants
cakephp, cakephp-2.1, cakephp-2.2, php
Solution
/app/Config/bootstrap.php
I wouldn't set them up as constants, I'd use the configure class to store them:
Configure::write(array(
'outh2.key'=>'foo',
'outh2.secret_key'=>'bar',
'outh2.dev_key'=>'baz'
));
$key = Configure::read('outh2.key');
Problem
I want to include Google API in my app. I want to Define Outh2 Key, Secret Key and Developer Keys as Constants which i can call and use in the App controller. Which is the best place to define the same ?