applications/vanilla/controllers/class.categoriescontroller.php
public function Initialize() {
      parent::Initialize();
      if (!C('Vanilla.Categories.Use'))
         Redirect('/discussions');
      if ($this->Menu)
         $this->Menu->HighlightRoute('/categories');
         
      $this->CountCommentsPerPage = C('Vanilla.Comments.PerPage', 30);
   }
public function Initialize() {
      parent::Initialize();
      if (!C('Vanilla.Categories.Use'))
         Redirect('/discussions');
      if ($this->Menu)
         $this->Menu->HighlightRoute('/categories');
         
      $this->CountCommentsPerPage = C('Vanilla.Comments.PerPage', 30);
   }
public function Initialize ( ) { parent :: Initialize ( ) ; if ( ! C ( 'Vanilla.Categories.Use' ) ) Redirect ( '/discussions' ) ; if ( $ this -> Menu ) $ this -> Menu -> HighlightRoute ( '/categories' ) ; $ this -> CountCommentsPerPage = C ( 'Vanilla.Comments.PerPage' , 30 ) ; }
Highlight route.

Always called by dispatcher before controller's requested method.

@since 2.0.0
@access public
Highlight route .