心理咨询网
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.

CityController.php 1.2KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /**
  3. * @author 云趣科技
  4. * 分站列表控制器
  5. */
  6. namespace app\home\controller;
  7. use core\basic\Controller;
  8. use core\basic\Url;
  9. class CityController extends Controller
  10. {
  11. protected $parser;
  12. protected $htmldir;
  13. protected $model;
  14. public function __construct()
  15. {
  16. $this->parser = new ParserController();
  17. $this->htmldir = $this->config('tpl_html_dir') ? $this->config('tpl_html_dir') . '/' : '';
  18. }
  19. // 分站列表
  20. public function index()
  21. {
  22. $content = parent::parser($this->htmldir . 'city.html'); // 框架标签解析
  23. $content = $this->parser->parserBefore($content); // CMS公共标签前置解析
  24. $content = str_replace('{pboot:pagetitle}', '城市分站-{pboot:sitetitle}-{pboot:sitesubtitle}', $content);
  25. $content = $this->parser->parserPositionLabel($content, 0, '城市分站', Url::home('city',true)); // CMS当前位置标签解析
  26. $content = $this->parser->parserSpecialPageSortLabel($content, - 2, '城市分站', Url::home('city')); // 解析分类标签
  27. $content = $this->parser->parserAfter($content); // CMS公共标签后置解析
  28. $this->cache($content, true);
  29. }
  30. }