An application that illustrates an approach for dealing with Symfony2 XHR errors and exceptions.
JavaScript PHP
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Symfony2 XHR Error Handling - Demo Application

This is a demo app that accompanies this blog post.


  1. Clone the repository:

    $ git clone git://

  2. Ensure you have Composer available, either on the path or as a standalone PHAR archive. We'll assume the former, so

    $ composer help

should print out Composer's help screen.
  1. Configure permissions according to the Symfony manual

  2. Copy app/config/parameters.yml.dist to app/config/parameters.yml...

    $ cp app/config/parameters.yml.dist app/config/parameters.yml

    and configure with values correct for your environment.

  3. Complete app installation by running Composer's install command:

    $ composer install

  4. Create the database schema for the app:

    $ app/console doctrine:schema:update --force

  5. Create a user:

    $ app/console fos:user:create

  6. Navigate to the app, log in and you're done :)