I am working through the random number generator in the cookbook how ever when I try to access app_dev.php/random
I am getting 404 and the same for app_dev.php
.
My server is running cPanel and I installed Symfony via scriptalicious
When I load domain.co.nz/symfony
I get
Page Message:
Symfony is installed successfully.
Symfony is a Framework, so doesn't have an index page.
How could I resolve my above issues?
Routing:
use Symfony\Component\Routing\RouteCollection;
$ranNum = $loader->import('@DemoRandomNumberBundle/Resources/config/routing.php');
$ranNum->addPrefix('/');
$collection = new RouteCollection();
$collection->add('random', new Route('/random{limit}', array('_controller' => 'DemoBundle:Random:index')));
return $collection;