Test.php 739 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. namespace app\admin\controller;
  3. use app\common\controller\Backend;
  4. /**
  5. * test
  6. *
  7. */
  8. class Test extends Backend
  9. {
  10. /**
  11. * Test模型对象
  12. * @var \app\admin\model\Test
  13. */
  14. protected $model = null;
  15. protected $defaultSortField = 'weigh,desc';
  16. protected $preExcludeFields = ['id', 'update_time', 'create_time'];
  17. protected $quickSearchField = ['id'];
  18. public function initialize()
  19. {
  20. parent::initialize();
  21. $this->model = new \app\admin\model\Test;
  22. $this->request->filter('trim,htmlspecialchars');
  23. }
  24. /**
  25. * 若需重写查看、编辑、删除等方法,请复制 @see \app\admin\library\traits\Backend 中对应的方法至此进行重写
  26. */
  27. }