3

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.

Luke Pearce
  • 3,863
  • 1
  • 11
  • 25
Mik C
  • 33
  • 4

1 Answers1

4

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 a Craft plugin and manually include the files that you're looking to use.

Brad Bell
  • 67,440
  • 6
  • 73
  • 143
  • Ah ok, thanks Brad. At least it could be done without touching core. And thanks for the links, they're very helpful! – Mik C Aug 25 '16 at 21:45