Questions tagged «php»

PHP是一种广泛使用的高级动态,面向对象和解释性脚本语言,主要用于服务器端Web开发。用于有关PHP语言的问题。


1
我的探查器工具栏未显示在symfony 4.3.1中
在我的.env文件中,我已将我的应用程序环境指定为dev和debug,如下所示: APP_ENV=dev APP_DEBUG=true 在我的config/packages/dev/web_profiler.yaml文件中,我有以下内容: web_profiler: toolbar: true intercept_redirects: false framework: profiler: { only_exceptions: false } 其中的路由config/routes/dev/web_profiler.yaml似乎很好: web_profiler_wdt: resource: '@WebProfilerBundle/Resources/config/routing/wdt.xml' prefix: /_wdt web_profiler_profiler: resource: '@WebProfilerBundle/Resources/config/routing/profiler.xml' prefix: /_profiler 因此,当我运行服务器时symfony server:start一切正常,但没有显示探查器。我是否错过了在Symfony中启用该功能的功能? 为了澄清,该页面正在输出具有适当内容的适当HTML页面。只是没有显示探查器。 我的基本树枝模板: <!DOCTYPE html> <html lang="en" dir="ltr"> <head> <meta charset="utf-8"> <title>{% block title %} {% endblock %}</title> {{ encore_entry_script_tags('base') }} <link rel="icon" …
9 php  symfony  symfony4 

3
如何解决`SameSite`属性
我看着控制台,注意到这些警告 设置了与http://google.com/上的跨站点资源关联的cookie ,但未设置SameSite属性。如果将跨站点请求的Cookie设置为SameSite = None和Secure,则将来的Chrome版本将仅提供具有跨站点请求的cookie。您可以在“应用程序”>“存储”>“ Cookies”下的开发人员工具中查看Cookie,并在https://www.chromestatus.com/feature/5088147346030592和https://www.chromestatus.com/feature/5633521622188032上查看更多详细信息。 怎么解决呢?
9 php  html 
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.