Answers.Body: <p>I found the answer. This might help others:</p>
  
  <pre><code>$categories = craft()-&gt;elements-&gt;getCriteria(ElementType::Category)-&gt;group('handle');
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-10-25T07:33:03.573Z
Answers.LastActivityDate: 2016-10-25T07:33:03.573Z
Answers.UserDisplayName: Anya Dit
Body: <p>I want to get all the categories in a specific category group inside my controller. How do you do that?</p>
  
Tags: <categories><controller>
Title: How do you get all the categories in a category group in a controller?
ThreadText: # How do you get all the categories in a category group in a controller?
  
  (Asked by: username_0 on 2016-10-25)
  
  I want to get all the categories in a specific category group inside my controller. How do you do that?
  
  **Tags:** categories, controller
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2016-10-25. Score: 3 | Accepted answer
  
  I found the answer. This might help others:
  
  ```
  $categories = craft()->elements->getCriteria(ElementType::Category)->group('handle');
  
  ```
  
  
  ---
  
  