summaryrefslogtreecommitdiff
path: root/protected/views/search/results.php
blob: fa28297947fbcf177414a5c9fe339181ee204cf3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
$this->breadcrumbs=array(
	'Search'=>array('/search'),
	'Results',
);
$this->pageTitle = 'Suchergebnisse für ' .CHtml::encode($search). ' - ' . Yii::app()->name;
?>
<h3>Suchergebnisse für "<?php echo CHtml::encode($search) ?>"</h3>
<?php foreach ($results as $mod => $res) {?>
	<?php $dataProvider = new CArrayDataProvider($res);
	if($dataProvider->getItemCount()>0) {?>
	<h5><?php echo $mod ?></h5>
	<?php 
	$this->widget('zii.widgets.CListView', array(
			'dataProvider'=>$dataProvider,
			'pager'=>array('footer'=>'', 'header'=>''),
			'itemView'=>'/'.lcfirst($mod).'/_short',   // refers to the partial view named '_post'
			
	  ));?>
<?php }
}?>