I’m new to symfony and having issues createing and running new controllers.
I have two other controllers and they work fine but for some reason I can seem to create any new controllers with out it throughing out a error message.
The new controller also prevents the other controllers from working but if i delete the new controller the other two controllers work.
I recreated the route, the controller and still no go.
cleared the cache with no success.
any ideas
Compile Error: Symfony\Component\Debug\DebugClassLoader::loadClass(): Failed opening required ‘/home/test/webhtdocs/symfony/project1/src/AppBundle/Controller/ContactController.php’ (include_path=‘.:/usr/share/php:/usr/share/pear’)
contact:
path: /contact
defaults: { _controller:AppBundle:Contact:index }
<?php
namespace AppBundle\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
class ContactController extends Controller
{
public function indexAction()
{
return $this->render('AppBundle:forms:homepage.html.twig');
}
}