Download the PHP package bravo3/spa-bundle without Composer
On this page you can find all versions of the php package bravo3/spa-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download bravo3/spa-bundle
More information about bravo3/spa-bundle
Files in bravo3/spa-bundle
Download bravo3/spa-bundle
More information about bravo3/spa-bundle
Files in bravo3/spa-bundle
Vendor bravo3
Package spa-bundle
Short Description Symfony 2 bundle to create a SPA web application
License MIT
Package spa-bundle
Short Description Symfony 2 bundle to create a SPA web application
License MIT
Please rate this library. Is it a good library?
Informations about the package spa-bundle
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.
Page content is broken into "blocks", only required blocks of the main site layout will be re-rendered.
This bundle requires your application to use Twig rendering, only minor changes to the controller are required:
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']);
}
}
All versions of spa-bundle with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.5.0
The package bravo3/spa-bundle contains the following files
Loading the files please wait ....