Cannot import resource "@AcmeDemo/Resources/config/routing.yml" from "C:/xampp/htdocs/aukcje/app/config/routing.yml". Make sure the "AcmeDemo/Resources/config/routing.yml" bundle is correctly registered and loaded in the application kernel class.
Plik app/config/routing.yml
Cytat
AcmeDemoBundle:
resource: "@AcmeDemo/Resources/config/routing.yml"
prefix: /
resource: "@AcmeDemo/Resources/config/routing.yml"
prefix: /
Plik src/Acme/DemoBundle/Resources/config/routing.yml
Cytat
hello:
pattern: /hello/{name}
defaults: { _controller: AcmeDemoBundle:Hello:index }
pattern: /hello/{name}
defaults: { _controller: AcmeDemoBundle:Hello:index }
Plik app/AppKernel.php
class AppKernel extends Kernel { public function registerBundles() { new Symfony\Bundle\FrameworkBundle\FrameworkBundle(), new Symfony\Bundle\SecurityBundle\SecurityBundle(), new Symfony\Bundle\TwigBundle\TwigBundle(), new Symfony\Bundle\MonologBundle\MonologBundle(), new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(), new Symfony\Bundle\AsseticBundle\AsseticBundle(), new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(), new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(), new JMS\AopBundle\JMSAopBundle(), new JMS\DiExtraBundle\JMSDiExtraBundle($this), new JMS\SecurityExtraBundle\JMSSecurityExtraBundle(), ); $bundles[] = new Acme\DemoBundle\AcmeDemoBundle(); $bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle(); $bundles[] = new Sensio\Bundle\DistributionBundle\SensioDistributionBundle(); $bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle(); } return $bundles; } public function registerContainerConfiguration(LoaderInterface $loader) { $loader->load(__DIR__.'/config/config_'.$this->getEnvironment().'.yml'); } }