03.20 php saved
xbase
Tags add more
appcontroller  
Note
/cake/app_controller.php
  1. <?php
  2.  
  3. class AppController extends Controller {
  4.    
  5.     var $components = array('SitePreference');
  6.    
  7.     function beforeRender()
  8.     {     
  9.         $this->set('company',   $this->SitePreference->companyInformation());
  10.         $this->set('site',   $this->SitePreference->siteInformation());
  11.         $this->set('email',     $this->SitePreference->emailInformation());
  12.         $this->set('smtp',   $this->SitePreference->smtpInformation());
  13.     }
  14.               
  15. }
  16.  
  17. ?>
Parsed in 0.026 seconds, using GeSHi 1.0.7.14

Modify this Paste