How to put a button inside the listview to open another page

How to put a button inside the listview to open another page!

I tried this way but it didn’t work

<?php


                                echo  ListView::widget([

                                    'dataProvider' => $dataProvider,
                                    'itemView' => '../index/_mercado-livre-principal-produto',
                                    'summary'=>'',
                                    'buttons' => [
                                        'view' => function ($url, $model) {
                                            return Html::a(' <span class="glyphicon glyphicon-search" ></span > ',
                                                Url::to(['/pedidos/view', 'id' => $model->id]), [
                                                    'title' => Yii::t('yii', 'View'),
                                                ]);

                                        }
                                    ]



                                ]);

                                ?>