library spa-bundle
Symfony 2 bundle to create a SPA web application
bravo3/spa-bundle
Symfony 2 bundle to create a SPA web application
- Saturday, May 9, 2015
- by jordonsc
- Repository
- 1 Watchers
- 0 Stars
- 60 Installations
- JavaScript
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 3 Versions
- 2 % Grown
Bravo3 Single-Page Application for Symfony 2
This bundle enables you to turn any normal Symfony 2 application into a 'SPA' application, causing the first page load
to be rendered normally and all consequtive page hits to be loaded via XHR., (*1)
Page content is broken into "blocks", only required blocks of the main site layout will be re-rendered., (*2)
This bundle requires your application to use Twig rendering, only minor changes to the controller are required:, (*3)
class HomeController extends AbstractSpaController
{
/**
* @Route("/", name="home")
* @param Request $request
* @return Response
*/
public function homeAction(Request $request)
{
// ..
// Call the AbstractSpaController#render() function to trigger the SPA engine -
return $this->render('@MySiteBundle/Home/home.html.twig', ['param' => 'value']);
}
}
dev-master
9999999-dev
Symfony 2 bundle to create a SPA web application
Sources
Download
MIT
The Requires
by
Jordon Scott
0.1.1
0.1.1.0
Symfony 2 bundle to create a SPA web application
Sources
Download
MIT
The Requires
by
Jordon Scott
0.1.0
0.1.0.0
Symfony 2 bundle to create a SPA web application
Sources
Download
MIT
The Requires
by
Jordon Scott