Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Controller to load the SPA
// Part of the Dunglas' Symfony 2 / Chaplin.js tutorial
namespace Dunglas\ChaplinDemoBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
class DefaultController extends Controller
* @Route("/")
* @Template()
public function indexAction()
return array();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.