Step 1 : Go to app/config/  directory



  Step 2 : Make your setting file



   File Name : settings.php
  
   code :
  


   <?php
    
     $config['Settings'] = array('id'=>'1','name'=>'Pathlogy'); 
  
   ?>




Step 3 : Open your Bootstrap file from app/config/  directory 


  Load your setting file into Bootstrap.

 


  <?php
 
      Configure::load('settings'); 
 
  ?>


 
 
 
Step 4 : Go to your example controller

 


 
<?php
 
class ExampleController extends AppController
{
 
      function index()
    {   
        $module_id = Configure::read('Setting.id');
        $module_name = Configure::read('Setting.name');
       
        debug($module_id);
        debug($module_name);   
   
    }
}   
 
 
?>