你下面都默认给大写的Index了，  还说什么小写啊~~~


nly92@foxmail.com
 发件人： leo发送时间： 2014-03-27 16:53收件人： leo108/SinglePHP抄送： niulingyun主题： Re: [SinglePHP] 优化SinglePHP.class.php兼容性 (#1)In SinglePHP.class.php:
> @@ -149,12 +151,12 @@ public function run(){
>              $pathInfo = isset($_SERVER['PATH_INFO'])?$_SERVER['PATH_INFO']:'';
>              $pathInfoArr = explode('/',trim($pathInfo,'/'));
>              if(isset($pathInfoArr[0]) && $pathInfoArr[0] !== ''){
> -                $this->c = $pathInfoArr[0];
> +                $this->c = ucfirst($pathInfoArr[0]);

嗯，但是我们这里并没有强制规定首字符要大写，假如开发者就是希望使用小写开头的Controller呢？

—
Reply to this email directly or view it on GitHub.