I followed the tutorials for symfony and hit the road block.
my installation is the current version of xampp (works on Windows), so my apache and php are relatively updated.
after their "quick tour" here:
http://symfony.com/doc/current/quick_tour/the_big_picture.html
everything worked fine in the development environment. following the instructions a bit further, I started creating my own test suite through the guide here:
http://symfony.com/doc/current/book/page_creation.html
and cannot make it work properly in a production environment. (It works fine in the Dev environment, as do the pre-installed demos.
I tried to clear the cache through the application / console cache: clear --env = prod --no-debug, however this did not help (and it seems that this is the only sentence that appears when searching.
When viewing routes, I see that the route "/ hello / {name}" appears in the list of routes.
my app / config / routing.yml has:
acme_hello: resource: "@AcmeHelloBundle/Resources/config/routing.yml" prefix: /
as expected, and then my src / Acme / HelloBundle / Resources / config / routing.yml has
hello: path: /hello/{name} defaults: { _controller: AcmeHelloBundle:Hello:index }
Does anyone have any suggestions regarding the problem? (I also tried converting the demo from the box to the production route by copying the route information from the routing_dev.yml file and reassigning the package in the appkernel.php file, but that was the same problem)
--- edit ---
per request, here is my appkernel.php file
use Symfony \ Component \ HttpKernel \ Kernel; use Symfony \ Component \ Config \ Loader \ LoaderInterface;
class AppKernel extends Kernel { public function registerBundles() { $bundles = array( 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(), new Acme\HelloBundle\AcmeHelloBundle(), new Acme\DemoBundle\AcmeDemoBundle(), ); if (in_array($this->getEnvironment(), array('dev', 'test'))) { $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'); } }
--- 2nd edit ---
I found a problem. I thought it was strange that nothing appeared in the prod log, so I thought that maybe something redirects me, forcing me to completely skip the app.php file.
Turns out it was a problem. I emptied the contents of the .htaccess file that was in the web folder (the one symfony was configured to), and then everything magically started working.