<?php
// 检测PHP环境
if(version_compare(PHP_VERSION,'5.3.0','<')) die('require PHP > 5.3.0 !');
//后台入口
if($_GET['m']){
define('BIND_MODULE','Admin');
}
//前台入口
if($_GET['c']){
define('BIND_MODULE','Index');
}
//会员入口
if($_GET['e']){
define('BIND_MODULE','Members');
}
//商户入口
if($_GET['b']){
define('BIND_MODULE','Business');
}
define('APP_DEBUG',True);
// 定义应用目录
define('APP_PATH','./order/');
// 引入ThinkPHP入口文件
require './ThinkPHP/ThinkPHP.php';访问GET b模块的时候进入模型就可以 但是进入模型下的 第二个方法就不行了呢
<?php
namespace Business\Controller;
use Think\Controller;
class LoginController extends Controller {
public function index(){
echo "我是Login的首页----aaaaaaa";
}
public function home(){
echo "无法访问到我....";
}
}http://localhost:801/index.php?b=Business&s=Login&home求指点啊
最佳答案