Example #1
0
$this->title = "自定义日志类型";
?>
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1>
            类型列表
        </h1>
        <?php 
echo Breadcrumbs::widget(['tag' => 'ol', 'itemTemplate' => "<li>{link}</li>\n", 'links' => [['label' => '导航面板', 'url' => ['/ajax/trace/index']]]]);
?>
    </section>
    <section class="content">
        <?php 
#获得日志统计记录
$dataProvider = LogTypeService::findLogType();
?>
        <div class="row">
            <div class="col-xs-12">
                <div class="box">
                    <div class="box-header">
                        <h3 class="box-title">跟踪日志</h3>
                        <div class="box-tools">
                            <ul class="pagination pagination-sm no-margin pull-right">
                                <li><a href="<?php 
echo Url::toRoute('/ajax/logtype/add');
?>
"><i class="fa fa-fw fa-plus"></i></a></li>
                            </ul>
                        </div>
                    </div><!-- /.box-header -->