我很新,所以Symfony2想要创建一个名为"dp"的新环境.但由于某种原因,我不断收到错误.
FileLoaderLoadException: Cannot import resource "/a/b/c/d/e/app/config/config_dev.yml" from "/a/b/c/d/e/app/config/config_dp.yml".
InvalidArgumentException: There is no extension able to load the configuration for "web_profiler" (in /a/b/c/d/e/app/config/config_dev.yml). Looked for namespace "web_profiler", found "framework", "security", "twig", "monolog", "swiftmailer", "doctrine", "assetic", "sensio_framework_extra", "jms_security_extra", "smarty", "bela_meter", "bela_invoice", "bela_util"
Run Code Online (Sandbox Code Playgroud)
我遵循了Symfony2 文档步骤 app/config/config_dp.yml的内容是
imports:
- { resource: config_dev.yml }
Run Code Online (Sandbox Code Playgroud)
web/app_dp.php包含:
$kernel = new AppKernel('dp', true);
$kernel->loadClassCache();
$kernel->handle(Request::createFromGlobals())->send();
Run Code Online (Sandbox Code Playgroud)
我怎样才能解决这个问题?config_dev.yml环境完美无瑕.
symfony ×1