简体   繁体   English

Symfony2如何缓存我的文件app_dev.php

[英]how Symfony2 cache my file app_dev.php

There is no phpinfo(); 没有phpinfo(); in my app_dev.php, view in the web is OK (no phpinfo) and I type phpinfo(); 在我的app_dev.php中,可以在网络上查看(没有phpinfo),然后键入phpinfo(); in app_dev.php, view the web, but it's still no phpinfo, and no effect, and i still refresh the web, about few minutes (maybe many times refreshing), it works, (yes phpinfo is showing in the web) 在app_dev.php中,查看网络,但是它仍然没有phpinfo,也没有任何效果,并且我仍然刷新网络,大约几分钟(也许是多次刷新),它可以工作,(是phpinfo在网络中显示)

This is my code: 这是我的代码:

phpinfo();
$loader = require __DIR__.'/../app/autoload.php';
Debug::enable();

$kernel = new AppKernel('dev', true);
//$kernel->loadClassCache();
$request = Request::createFromGlobals();
$response = $kernel->handle($request);
$response->send();
$kernel->terminate($request, $response);

Why? 为什么? I'm confused. 我糊涂了。 Anyone can help me? 有人可以帮助我吗?

In my case - your code is working. 就我而言-您的代码正在运行。 I think its not a symfony issue. 我认为这不是symfony问题。 But at all you can run phpinfo with default symfony profile toolbar. 但是,您完全可以使用默认的symfony配置文件工具栏运行phpinfo。 Look at here: 看这里: 在此处输入图片说明

暂无
暂无

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

相关问题 Symfony2 - 如何从我的网址中删除“web / app_dev.php /”? - Symfony2 - How can I remove 'web/app_dev.php/' from my url? Symfony2-在不使用前端控件app_dev.php的情况下访问开发人员缓存 - Symfony2 - Access dev cache without using the front controlleur app_dev.php Symfony2:app_dev.php只允许访问IP? - Symfony2: app_dev.php allow access only to IP? Symfony2无法访问app_dev.php,除非删除Web文件夹中的.htacess文件 - Symfony2 cant access app_dev.php unless removing .htacess file in web folder 如何从Symfony2 URL中删除“web / app_dev.php”? - How to remove “web/app_dev.php” from Symfony2 URLs? Symfony2 app.php 接收 POST 请求作为 GET app_dev.php 工作正常 - Symfony2 app.php receiving POST request as GET app_dev.php works fine 从Symfony2中的开发(app_dev.php)到生产(app.php) - From development (app_dev.php) to production (app.php) in Symfony2 Symfony2:在 app.php 和 app_dev.php 之间切换,我这样做对吗? - Symfony2 : Switching between app.php and app_dev.php, am I doing it right? Symfony2:主页可以正确显示在/app_dev.php中,但不能正确显示在/app.php中 - Symfony2: home page displayed properly with /app_dev.php but not with /app.php .htacess正在进入主页,但未进入子页面,因此,如何从Symfony2 URL中删除“ web / app_dev.php”? - .htacess is working into the home page but not working into the sub pages so, How to remove “web/app_dev.php” from Symfony2 URLs?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM