arraydataprovider CArrayDataProvider takes an array of AR models for being used in an zii Widget like CListView.

  1. Documentation
  2. Change Log

CArrayDataProvider takes an array of AR models for being used in an zii Widget like CListView.

Resources

Documentation

Requirements
  • Yii 1.1 or above
Installation
  • Extract the release file under protected/extensions
Usage

See the following code example:

Yii::import('application.extensions.CArrayDataProvider');
$posts = User->posts;
$dataProvider=new CArrayDataProvider('Post', $posts);
// $dataProvider->getData() will return a list of Post objects belonging to User

Change Log

December 19, 2009
  • Initial release.
6 0
3 followers
1 483 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: Database
Tags:
Developed by: thyseus
Created on: Dec 19, 2009
Last updated: 14 years ago

Downloads

show all