Man*_*jar 10 php cakephp visual-studio-2013
我正在尝试用Visual Studio(2013)的php工具调试我的cakephp应用程序.
我无法做到这一点,当我尝试调试时,它不尊重路由.
有人知道怎么做吗?
要使用MS Visual Studio 2013调试cakephp应用程序,我执行了这些步骤,它对我来说很好用:
所以你会得到这样的东西:
对于调试,我们将使用IIS Express,因此如果您还没有安装它,可以通过MS Web Platform Installer从同一窗口安装它:
所以你会得到这样的东西:
web.config项目的根目录中:web.config内容:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Exclude direct access to webroot/*"
stopProcessing="true">
<match url="^webroot/(.*)$" ignoreCase="false" />
<action type="None" />
</rule>
<rule name="Rewrite routed access to assets(img, css, files, js, favicon)"
stopProcessing="true">
<match url="^(img|css|files|js|favicon.ico)(.*)$" />
<action type="Rewrite" url="webroot/{R:1}{R:2}"
appendQueryString="false" />
</rule>
<rule name="Rewrite requested file/folder to index.php"
stopProcessing="true">
<match url="^(.*)$" ignoreCase="false" />
<action type="Rewrite" url="index.php"
appendQueryString="true" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
Run Code Online (Sandbox Code Playgroud)
然后
就这样 !
希望能有所帮助.
| 归档时间: |
|
| 查看次数: |
3108 次 |
| 最近记录: |