为啥控制器这么听话
phpcms中
header(‘location:index.php?m=admin’);用m就能控制入口进入哪个模块中,比如m=admin进入admin模块,m=abc就能进入 abc模块执行其中的命令,那么这是怎么玩的呢
——解决思路———————-
$filepath = PC_PATH.’modules’.DIRECTORY_SEPARATOR.$m.DIRECTORY_SEPARATOR.$filename.’.php’;
本文来源gaodai$ma#com搞$$代**码)网8搞代gaodaima码组织文件路径
include $filepath;
引入文件
这么明显了….你要是include 都不知道…没办法