sgj773624926
- sgj773624926 2017-08-02 已签到连续签到2天,获得了10个金钱
- sgj773624926 赞了回复
还好 就是比我差点
- sgj773624926 回复了 YiiSoEasy 的回复
你出来。代码都报语法错误。
SiteController
里<?php require_once __DIR__ . '/../vendor/autoload.php'; $router = $_GET['r']; list($controllerName, $actionName) = explode('/', $router); $ucController = ucfirst($controllerName); $controllerName = 'app\\controllers\\' . $ucController . 'Controller'; $controller = new $controllerName(); return call_user_func_array([$controller, 'action'. ucfirst($actionName)];
最后一句,你确定不报语法错误?
最后少写了个),但看我的文章,里面是有的啊,⊙﹏⊙‖∣
- sgj773624926 发布了话题构建自己的PHP框架
- sgj773624926 2017-08-01 已签到连续签到1天,获得了5个金钱
- sgj773624926 2017-06-06 已签到连续签到1天,获得了5个金钱
- sgj773624926 2017-03-18 已签到连续签到1天,获得了5个金钱
- sgj773624926 2017-03-13 已签到连续签到1天,获得了5个金钱