Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- routing:
- CaasSampleBundle:
- resource: "@CaasSampleBundle/Controller/"
- type: annotation
- prefix: /
- Controller
- <?php
- namespace Caas\Bundle\SampleBundle\Controller;
- use Symfony\Bundle\FrameworkBundle\Controller\Controller;
- use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
- use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
- use Caas\Bundle\SampleBundle\Form\LoginType;
- class DefaultController extends Controller
- {
- /**
- * @Route("/login", name="login")
- * @Template()
- */
- public function loginAction()
- {
- $form = $this->get('form.factory')->create(new LoginType());
- return array('form' => $form->createView());
- }
- }
Add Comment
Please, Sign In to add comment