diff options
Diffstat (limited to 'protected/views/standort/_standort.php')
| -rw-r--r-- | protected/views/standort/_standort.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/protected/views/standort/_standort.php b/protected/views/standort/_standort.php new file mode 100644 index 0000000..9c12fbe --- /dev/null +++ b/protected/views/standort/_standort.php @@ -0,0 +1,18 @@ +<h6>Folgende Vereine finden sich <?php echo $data->name?></h6> +<?php +$dataProvider=new CActiveDataProvider('Verein', array( + 'criteria'=>array( + 'condition'=>'standort_id='.$data->id, + ), + 'pagination'=>array( + 'pageSize'=>20, + ), + +)); +$this->widget('zii.widgets.CListView', array( + 'dataProvider'=>$dataProvider, + 'itemView'=>'/verein/_short', + 'sortableAttributes'=>array( + 'name' + ) + ));?>
\ No newline at end of file |
