<p>Craft 2.x ships with a subset of the Yii framework files with things like zii and Yii widgets stripped out.</p>

<p>If you wanted to utilize them, you'd have to <a href="http://pluginfactory.io" rel="nofollow">create</a> a <a href="http://craftcms.com/docs/plugins" rel="nofollow">Craft plugin</a> and manually include the files that you're looking to use.</p>

CC BY-SA 3.0
2016-08-25T21:45:20.137Z
Ah ok, thanks Brad. At least it could be done without touching core. And thanks for the links, they're very helpful!
Mik C
CC BY-SA 3.0
2016-08-25T17:22:05.007Z
2016-08-25T17:22:05.007Z
Brad Bell
<p>I have a large dataset of active records (not Craft entries) that I'd like to display in the admin frontend. Yii comes with a widget called CGridView, found here: <code>framework/zii/widgets/grid/CGridView.php</code>, which would fit the bill perfectly.</p>

<p>I've discovered that zii is not available in Craft, even though it's built on Yii. Is there an alternative to use in Craft that can provide a paginated grid view of active records or is there a way to include zii without affecting Craft core code?</p>

<p>This is for version 2.6 PRO of Craft CMS.</p>

<pagination>
Including Zii in Craft CMS
# Including Zii in Craft CMS

(Asked by: username_0 on 2016-08-25)

I have a large dataset of active records (not Craft entries) that I'd like to display in the admin frontend. Yii comes with a widget called CGridView, found here: `framework/zii/widgets/grid/CGridView.php`, which would fit the bill perfectly.

I've discovered that zii is not available in Craft, even though it's built on Yii. Is there an alternative to use in Craft that can provide a paginated grid view of active records or is there a way to include zii without affecting Craft core code?

This is for version 2.6 PRO of Craft CMS.

**Tags:** pagination


---

## 1 answers

### Answer by username_1 on 2016-08-25. Score: 4 | Accepted answer

Craft 2.x ships with a subset of the Yii framework files with things like zii and Yii widgets stripped out.

If you wanted to utilize them, you'd have to [create](http://pluginfactory.io) a [Craft plugin](http://craftcms.com/docs/plugins) and manually include the files that you're looking to use.

> **Comments:**
> **username_0**: Ah ok, thanks Brad. At least it could be done without touching core. And thanks for the links, they're very helpful!  

---

