读取被引用的php文件的路径 开源系统 更新 2018-01-03 15:04:50 xgocn ///取得文件路径 $thisfilepath=dirname(__FILE__); ///赋值给模板变量 $this->template->assign(array( 'thisfilepath'=>$thisfilepath, )); <!--模板中调用显示-->{$thisfilepath}
结合帮助
CMS的URL结构采用标准“查询字符串”方法,结构如下
1、后台URL
http://localhost/admin.php?c=控制器名称&m=方法名称
2、会员URL
http://localhost/index.php?s=member&c=控制器名称&m=方法名称
3、前端URL
http://localhost/index.php?c=控制器名称&m=方法名称
其中localhost是网站的主域名