legionofmyown / angsym-forms
Symfony2 forms presentation and handling with Angular.js
Installs: 16
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
pkg:composer/legionofmyown/angsym-forms
Requires
- php: >=5.5.0
This package is not auto-updated.
Last update: 2025-10-15 23:19:42 UTC
README
Symfony2 bundle to expose forms for Angular.js interface and process AJAX submits.
Usage
Controller
/** * @Route("/") * @Template() */ public function indexAction() { return [ 'formName' => Form1::class ]; } /** * @Route("/test-form-1", name="test_form1") * @Template() */ public function testForm1Action(Request $request) { $response = $this->get('angsym.form')->processForm($request, Form1::class, TestEntity::class); return $response; }
Twig
{{ angsym_form('myAppTest', formName, path("test_form1"), 'POST' ) }}