view.php 797 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. use yii\widgets\DetailView;
  3. /* @var $this yii\web\View */
  4. /* @var $model common\models\Spider */
  5. $this->title = $model->name;
  6. $this->params['breadcrumbs'][] = ['label' => Yii::t('common', 'Spiders'), 'url' => ['index']];
  7. $this->params['breadcrumbs'][] = $this->title;
  8. ?>
  9. <?= $this->render('../site/view_menu', [ 'model' => $model]) ?>
  10. <div class="box box-success">
  11. <div class="box-body">
  12. <?= DetailView::widget([
  13. 'model' => $model,
  14. 'attributes' => [
  15. 'id',
  16. 'name',
  17. 'title',
  18. 'domain',
  19. 'page_dom',
  20. 'list_dom',
  21. 'time_dom',
  22. 'content_dom',
  23. 'title_dom',
  24. 'target_category',
  25. 'target_category_url:url',
  26. ],
  27. ]) ?>
  28. </div>
  29. </div>