diff options
Diffstat (limited to 'protected/views/search/results.php')
| -rw-r--r-- | protected/views/search/results.php | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/protected/views/search/results.php b/protected/views/search/results.php new file mode 100644 index 0000000..c1d80e2 --- /dev/null +++ b/protected/views/search/results.php @@ -0,0 +1,22 @@ +<?php +$this->breadcrumbs=array( + 'Search'=>array('/search'), + 'Results', +);?> +<h3><?php echo $this->id . '/' . $this->action->id; ?></h3> +<?php foreach ($results as $mod => $res) {?> + <h6><?php echo $mod ?></h6> + <?php + $dataProvider = new CArrayDataProvider($res); + $this->widget('zii.widgets.CListView', array( + 'dataProvider'=>$dataProvider, + 'itemView'=>'/cms/'.lcfirst($mod).'/_short', // refers to the partial view named '_post' + 'sortableAttributes'=>array( + 'name', + /*'create_time'=>'Post Time',*/ + ), + ));?> +<?php }?> +<p> + <pre><?php print_r($results)?></pre> +</p> |
