title: CakePHP 3 : global variable to use everywhere
body: <p>I'm working in CakePHP 3 project and want to create global variable to store some information that can be used throughout the application.</p>
  
  <p>I have to store Company information like Name, slogan, description etc and also some links like, I'm using a subdomain out of the main application to store media files like <code>http://media.website.com</code> and application is at <code>http://website.com</code>. Now I want to store <code>http://media.website.com</code> in a global variable so that I can use it anywhere in my application just like <code>WWW_ROOT</code>.</p>
  
  <p>For this I tried using <code>Configure::write('mediaLink', 'http://media.website.com');</code> and tried to use it in view as <code>&lt;img src="&lt;?= Configure::read('mediaLink') . DS . 'files' . DS . 'image.jpg'"&gt;</code> but it gives error as <code>Class Configure is not found</code>. I tried adding <code>use Cake\Core\Configure;</code> to the controller but it gives same error.</p>