original_string: public function Initialize() {
        // Set up head
        $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');
        
        if (in_array($this->ControllerName, array('profilecontroller', 'activitycontroller'))) {
           $this->AddCssFile('style.css');
        } else {
           $this->AddCssFile('admin.css');
        }
        
        // Change master template
        $this->MasterView = 'admin';
        parent::Initialize();
        Gdn_Theme::Section('Dashboard');
     }
code: public function Initialize() {
        // Set up head
        $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');
        
        if (in_array($this->ControllerName, array('profilecontroller', 'activitycontroller'))) {
           $this->AddCssFile('style.css');
        } else {
           $this->AddCssFile('admin.css');
        }
        
        // Change master template
        $this->MasterView = 'admin';
        parent::Initialize();
        Gdn_Theme::Section('Dashboard');
     }
code_tokens: public function Initialize ( ) { // Set up head $ 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' ) ; if ( in_array ( $ this -> ControllerName , array ( 'profilecontroller' , 'activitycontroller' ) ) ) { $ this -> AddCssFile ( 'style.css' ) ; } else { $ this -> AddCssFile ( 'admin.css' ) ; } // Change master template $ this -> MasterView = 'admin' ; parent :: Initialize ( ) ; Gdn_Theme :: Section ( 'Dashboard' ) ; }
docstring: Switch MasterView. Include JS, CSS used by all methods.
  
  Always called by dispatcher before controller's requested method.
  
  @since 2.0.0
  @access public
docstring_tokens: Switch MasterView . Include JS CSS used by all methods .