Home  >  Article  >  Backend Development  >  phpcms中的首页路径是哪些函数控制的

phpcms中的首页路径是哪些函数控制的

WBOY
WBOYOriginal
2016-06-23 13:43:02894browse

比如首页的默认路径是index.php?m=content&c=index&a=init
那么问题来了,这个路径肯定是有一个函数控制的吧,那么是 哪个函数呢,它又 是如何控制的呢


回复讨论(解决方案)

这尼玛原来叫路径。。。。

看应用入口文件

include PHPCMS_PATH.'/phpcms/base.php';pc_base::creat_app();


看base.php
class pc_base {		/**	 * 初始化应用程序	 */	public static function creat_app() {		return self::load_sys_class('application');	}	... ...}


看application类
class application {		/**	 * 构造函数	 */	public function __construct() {		$param = pc_base::load_sys_class('param');		define('ROUTE_M', $param->route_m());		define('ROUTE_C', $param->route_c());		define('ROUTE_A', $param->route_a());		$this->init();	}}


路由的参数配置在caches/configs/route.php里

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn