public function actionIndex() { $tables = new CArrayList(); $set = CActiveRecordProvider::get2AllFromTable(TABLE_ACL_TABLES); foreach ($set->getPaginated()->getItems() as $item) { $table = new CACLTable($item); $tables->add($table->getId(), $table); } $this->setData("tables", $tables); $this->setData("paginator", $set->getPaginator()); $this->renderView("_acl_manager/tables/index.tpl"); }