applications/dashboard/controllers/class.profilecontroller.php
public function Initialize() {
      $this->ModuleSortContainer = 'Profile';
      $this->Head = new HeadModule($this);
      $this->AddJsFile('jquery.js');
      $this->AddJsFile('jquery.livequery.js');
      $this->AddJsFile('jquery.form.js');
      $this->AddJsFile('jquery.popup.js');
      $this->AddJsFile('jquery.gardenhandleajaxform.js');
      $this->AddJsFile('global.js');
      
      $this->AddCssFile('style.css');
      $this->AddModule('GuestModule');
      parent::Initialize();
      
      Gdn_Theme::Section('Profile');
      
      if ($this->EditMode)
         $this->CssClass .= 'EditMode';

      $this->SetData('Breadcrumbs', array());
      $this->CanEditPhotos = C('Garden.Profile.EditPhotos') || Gdn::Session()->CheckPermission('Garden.Users.Edit');
   }
public function Initialize() {
      $this->ModuleSortContainer = 'Profile';
      $this->Head = new HeadModule($this);
      $this->AddJsFile('jquery.js');
      $this->AddJsFile('jquery.livequery.js');
      $this->AddJsFile('jquery.form.js');
      $this->AddJsFile('jquery.popup.js');
      $this->AddJsFile('jquery.gardenhandleajaxform.js');
      $this->AddJsFile('global.js');
      
      $this->AddCssFile('style.css');
      $this->AddModule('GuestModule');
      parent::Initialize();
      
      Gdn_Theme::Section('Profile');
      
      if ($this->EditMode)
         $this->CssClass .= 'EditMode';

      $this->SetData('Breadcrumbs', array());
      $this->CanEditPhotos = C('Garden.Profile.EditPhotos') || Gdn::Session()->CheckPermission('Garden.Users.Edit');
   }
public function Initialize ( ) { $ this -> ModuleSortContainer = 'Profile' ; $ this -> Head = new HeadModule ( $ this ) ; $ this -> AddJsFile ( 'jquery.js' ) ; $ this -> AddJsFile ( 'jquery.livequery.js' ) ; $ this -> AddJsFile ( 'jquery.form.js' ) ; $ this -> AddJsFile ( 'jquery.popup.js' ) ; $ this -> AddJsFile ( 'jquery.gardenhandleajaxform.js' ) ; $ this -> AddJsFile ( 'global.js' ) ; $ this -> AddCssFile ( 'style.css' ) ; $ this -> AddModule ( 'GuestModule' ) ; parent :: Initialize ( ) ; Gdn_Theme :: Section ( 'Profile' ) ; if ( $ this -> EditMode ) $ this -> CssClass .= 'EditMode' ; $ this -> SetData ( 'Breadcrumbs' , array ( ) ) ; $ this -> CanEditPhotos = C ( 'Garden.Profile.EditPhotos' ) || Gdn :: Session ( ) -> CheckPermission ( 'Garden.Users.Edit' ) ; }
Adds JS, CSS, & modules. Automatically run on every use.

@since 2.0.0
@access public
Adds JS CSS & modules . Automatically run on every use .