心理咨询网
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

GetPageController.php 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. /**
  3. * @author xsh
  4. * @email hnxsh@foxmail.com
  5. * @date 2021年10月31日
  6. *
  7. */
  8. namespace app\home\controller;
  9. use core\basic\Controller;
  10. use app\home\model\ParserModel;
  11. use core\basic\Config;
  12. use core\basic\Url;
  13. class GetPageController extends Controller
  14. {
  15. protected $parser;
  16. protected $model;
  17. protected $tplhtmldir;
  18. public function __construct()
  19. {
  20. $this->parser = new ParserController();
  21. $this->model = new ParserModel();
  22. $this->tplhtmldir = $this->config('tpl_html_dir') ? $this->config('tpl_html_dir') . '/' : '';
  23. }
  24. // 首页
  25. protected function getIndexPage()
  26. {
  27. }
  28. // 列表
  29. protected function getListPage($sort)
  30. {
  31. $pagelink = $this->parser->parserLink($sort->type, $sort->urlname, 'list', $sort->scode, $sort->filename, '', '');
  32. }
  33. // 详情页
  34. protected function getContentPage($data)
  35. {
  36. $link = $this->parser->parserLink($data->type, $data->urlname, 'content', $data->scode, $data->sortfilename, $data->id, $data->filename);
  37. }
  38. // 单页
  39. protected function getAboutPage($sort)
  40. {
  41. $link = $this->parser->parserLink($sort->type, $sort->urlname, 'list', $sort->scode, $sort->filename, '', '');
  42. }
  43. // 检查页面权限
  44. }