title: How to pass variable from controller to all view files (.ctp) in cakephp
body: <p>My controller : <code>Controller/appController/OrdersController.php</code></p>
  
  <p>I have a function named <code>nocontact()</code> and I can pass variable to nocontact.ctp as follows:</p>
  
  <pre><code> $allNoContacts = $result;
          $service_charge=$this-&gt;ServiceCharge-&gt;find('all');
  
          $zero_service_charge=$this-&gt;ZeroServiceCharge-&gt;find('all');
          $zero_service_charge=$zero_service_charge[0]['ZeroServiceCharge']['items'];
          $this-&gt;set(compact('allNoContacts','service_charge','zero_service_charge')); 
  </code></pre>
  
  <p>How can I pass this variable to all view files under OrdersController?</p>