CommentController.class.php 951 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /**
  3. * 小梦科技资源nanodreamtech.com
  4. *
  5. * ==========================================================================
  6. * @link https://www.nanodreamtech.com/
  7. * @copyright Copyright (c) 2015 liofis.com.
  8. * @license https://www.nanodreamtech.com/license.html License
  9. * ==========================================================================
  10. *
  11. * @author fish
  12. *
  13. */
  14. namespace Admin\Controller;
  15. use Admin\Model\CommentModel;
  16. class CommentController extends CommonController{
  17. protected function _initialize(){
  18. parent::_initialize();
  19. $this->breadcrumb1='系统';
  20. $this->breadcrumb2='访客留言';
  21. }
  22. public function index(){
  23. $model=new CommentModel();
  24. $data=$model->show_comment_page();
  25. $this->assign('empty',$data['empty']);// 赋值数据集
  26. $this->assign('list',$data['list']);// 赋值数据集
  27. $this->assign('page',$data['page']);// 赋值分页输出
  28. /**/
  29. $this->display();
  30. }
  31. }
  32. ?>