phpcms v9怎么设置某个栏目作为首页,修改系统默认首页?

      发布在:程序维护      评论:0 条评论

有时候我们不需要使用默认的phpcms首页,而需要把某个栏目作为首页。那么可以修改route.php的路由配置来快速实现。

打开文件caches\configs\route.php

return array(
	'default'=>array('m'=>'content', 'c'=>'index', 'a'=>'init','data'=>array('GET'=>array('catid'=>1, 'siteid'=>1))),
);

加上 catid 的数字就是栏目的ID。

'data'=>array('GET'=>array('catid'=>1, 'siteid'=>1)) 

Responses

滇ICP备14007443号-4