<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>

CC BY-SA 3.0
2016-10-25T07:33:03.573Z
2016-10-25T07:33:03.573Z
Anya Dit
<p>I want to get all the categories in a specific category group inside my controller. How do you do that?</p>

<categories><controller>
How do you get all the categories in a category group in a controller?
# 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');


---

