欧美亚洲中文,在线国自产视频,欧洲一区在线观看视频,亚洲综合中文字幕在线观看

      1. <dfn id="rfwes"></dfn>
          <object id="rfwes"></object>
        1. 站長(zhǎng)資訊網(wǎng)
          最全最豐富的資訊網(wǎng)站

          聊聊valet是否有適合TP5的驅(qū)動(dòng)?

          下面thinkphp框架教程欄目將給大家介紹關(guān)于valet是否有適合thinkphp5的驅(qū)動(dòng)的問(wèn)題,希望對(duì)需要的朋友有所幫助!

          valet 有沒(méi)有適合thinkphp5的驅(qū)動(dòng)?

          覺(jué)得valet的思路很好所以采用了這個(gè)來(lái)做環(huán)境。

          公司里面用thinkphp的人比較多。所以要使用thinkphp。(而且我是弄前端的,后端用啥也不會(huì)特別在意)

          https://github.com/curder/blog/blob/master/tools/valet_support_thinkphp.md

          這是thinkphp3-valet的。

          ↓↓↓↓↓↓↓

          自己簡(jiǎn)單寫(xiě)了一個(gè)現(xiàn)在試的可以用。

          <?php class ThinkPHP5ValetDriver extends ValetDriver {     /**      * Determine if the driver serves the request.      *      * @param  string  $sitePath      * @param  string  $siteName      * @param  string  $uri      * @return bool      */     public function serves($sitePath, $siteName, $uri)     {         return true;     }     /**      * Determine if the incoming request is for a static file.      *      * @param  string  $sitePath      * @param  string  $siteName      * @param  string  $uri      * @return string|false      */     public function isStaticFile($sitePath, $siteName, $uri)     {         if (file_exists($staticFilePath = $sitePath.$uri)) {             return $staticFilePath;         }         return false;     }     /**      * Get the fully resolved path to the application's front controller.      *      * @param  string  $sitePath      * @param  string  $siteName      * @param  string  $uri      * @return string      */     public function frontControllerPath($sitePath, $siteName, $uri)     {         $_SERVER['SCRIPT_FILENAME'] = 'index.php';         $_SERVER['SCRIPT_NAME'] = '';         $_SERVER['PHP_SELF'] = '/index.php';         $_SERVER['PATH_INFO'] = $uri;         return $sitePath.'/index.php';     } }

          推薦:《最新的10個(gè)thinkphp視頻教程》

          贊(0)
          分享到: 更多 (0)
          網(wǎng)站地圖   滬ICP備18035694號(hào)-2    滬公網(wǎng)安備31011702889846號(hào)