久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

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

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

      valet 有沒有適合thinkphp5的驅(qū)動?

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

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

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

      這是thinkphp3-valet的。

      ↓↓↓↓↓↓↓

      自己簡單寫了一個現(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個thinkphp視頻教程》

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