Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A demo form bundle
PHP
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
Controller
Entity
Form
Resources
AcmeFormDemoBundle.php
README.md

README.md

Symfony Form Demo Bundle

Add this bundle to your project as Git submodules:

      $ git submodule add git://github.com/johnwards/FormDemoBundle.git vendor/bundles/Acme/FormDemoBundle

Add the Acme namespace to your autoloader:

      // app/autoload.php
      $loader->registerNamespaces(array(
            'Acme' => __DIR__.'/../vendor/bundles',
            // your other namespaces
      ));

Add this bundle to your application's kernel:

      // app/AppKernel.php
      public function registerBundles()
      {
          return array(
              // ...
              new Acme\FormDemoBundle\AcmeFormDemoBundle(),
              // ...
          );
       }

Add this to your your routing.yml

      _form_demo:
          resource: "@AcmeFormDemoBundle/Resources/config/routing.yml"

Routes:

      /account/register
      /account
      /researcher
Something went wrong with that request. Please try again.