简体   繁体   English

蛋糕PHP路由器

[英]cake php router

while I run the cake php application? 当我运行Cake php应用程序时? Fatal error: Class 'Router' not found in C:\\wamp\\www\\tickerping\\app\\config\\routes.php on line 34 how to solve this 致命错误:在第34行的C:\\ wamp \\ www \\ tickerping \\ app \\ config \\ routes.php中找不到类“ Router”

Make sure the file C:\\wamp\\www\\tickerping\\cake\\libs\\router.php exists. 确保文件C:\\ wamp \\ www \\ tickerping \\ cake \\ libs \\ router.php存在。 This is the file for the Router class. 这是Router类的文件。 If so, I would recommend posting your index.php file so we can see what your path variables are set too. 如果是这样,我建议您发布index.php文件,以便我们也可以查看您设置的路径变量。

Have you ever had Cake running on that server? 您曾经在该服务器上运行过Cake吗?

Check that mod_rewrite is installed/enabled. 检查是否已安装/启用了mod_rewrite。 You can do this by making a file called phpinfo.php in your webroot containing the line <?php echo phpinfo.php ?> . 您可以通过在Webroot中创建一个名为phpinfo.php的文件来完成此操作,其中包含行<?php echo phpinfo.php ?> Navigate to that page in the browser and search for 'rewrite'. 在浏览器中导航到该页面并搜索“重写”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM