public function renderItems() {
		
		echo CHtml::openTag($this->itemsTagName, array('class' => $this->itemsCssClass)) . "\n";

		$data = $this->dataProvider->getData();

		if (!empty($data)) {
			echo CHtml::openTag('div', array('class' => 'row'));
			$owner = $this->getOwner();
			$render = $owner instanceof CController ? 'renderPartial' : 'render';
			foreach ($data as $i => $item) {
				$data = $this->viewData;
				$data['index'] = $i;
				$data['data'] = $item;
				$data['widget'] = $this;
				$owner->$render($this->itemView, $data);
			}

			echo '</div>';
		} else {
			$this->renderEmptyText();
		}

		echo CHtml::closeTag($this->itemsTagName);
	}
public function renderItems() {
		
		echo CHtml::openTag($this->itemsTagName, array('class' => $this->itemsCssClass)) . "\n";

		$data = $this->dataProvider->getData();

		if (!empty($data)) {
			echo CHtml::openTag('div', array('class' => 'row'));
			$owner = $this->getOwner();
			$render = $owner instanceof CController ? 'renderPartial' : 'render';
			foreach ($data as $i => $item) {
				$data = $this->viewData;
				$data['index'] = $i;
				$data['data'] = $item;
				$data['widget'] = $this;
				$owner->$render($this->itemView, $data);
			}

			echo '</div>';
		} else {
			$this->renderEmptyText();
		}

		echo CHtml::closeTag($this->itemsTagName);
	}
public function renderItems ( ) { echo CHtml :: openTag ( $ this -> itemsTagName , array ( 'class' => $ this -> itemsCssClass ) ) . "\n" ; $ data = $ this -> dataProvider -> getData ( ) ; if ( ! empty ( $ data ) ) { echo CHtml :: openTag ( 'div' , array ( 'class' => 'row' ) ) ; $ owner = $ this -> getOwner ( ) ; $ render = $ owner instanceof CController ? 'renderPartial' : 'render' ; foreach ( $ data as $ i => $ item ) { $ data = $ this -> viewData ; $ data [ 'index' ] = $ i ; $ data [ 'data' ] = $ item ; $ data [ 'widget' ] = $ this ; $ owner -> $ render ( $ this -> itemView , $ data ) ; } echo '</div>' ; } else { $ this -> renderEmptyText ( ) ; } echo CHtml :: closeTag ( $ this -> itemsTagName ) ; }
Renders the data items for the view.
Each item is corresponding to a single data model instance.
Child classes should override this method to provide the actual item rendering logic.
Renders the data items for the view . Each item is corresponding to a single data model instance . Child classes should override this method to provide the actual item rendering logic .