cakephp 3 baseUrl启用缺少控制器

时间:2015-12-11 08:25:55

标签: php cakephp

app.php中的

它说:

* - baseUrl - To configure CakePHP to *not* use mod_rewrite and to
     *   use CakePHP pretty URLs, remove these .htaccess
     *   files:
     *      /.htaccess
     *      /webroot/.htaccess
     *   And uncomment the baseUrl key below.

但是当我取消注释时//'baseUrl' => env('SCRIPT_NAME'), 我收到控制器错误。

1 个答案:

答案 0 :(得分:0)

请创建htaccess文件并在下面写下代码

true