Download the PHP package emc/xmlhttprequest-bundle without Composer
On this page you can find all versions of the php package emc/xmlhttprequest-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download emc/xmlhttprequest-bundle
More information about emc/xmlhttprequest-bundle
Files in emc/xmlhttprequest-bundle
Package xmlhttprequest-bundle
Short Description This bundle gives a unified way to handle and control AJAX requests. For more informations https://github.com/chafiq/EMCXmlHttpRequest/blob/master/README.md
License MIT
Homepage https://github.com/chafiq/EMCXmlHttpRequest
Informations about the package xmlhttprequest-bundle
XmlHttpRequest bundle.
This bundle gives a unified way to handle and control AJAX requests.
Installation
- Download EMCXmlHttpRequest
- Configure the Autoloader
- Enable the Bundle
Step 1: Download EMCXmlHttpRequest
Ultimately, the EMCXmlHttpRequest files should be downloaded to the vendor/bundles/EMC/Bundle/XmlHttpRequest
directory.
This can be done in several ways, depending on your preference. The first method is the standard Symfony2 method.
Using Composer
Add EMCXmlHttpRequest in your composer.json:
Now tell composer to download the bundle by running the command:
Using submodules
If you prefer instead to use git submodules, then run the following:
Note that using submodules requires manually registering the EMC
namespace to your autoloader:
Step 2: Enable the bundle
Finally, enable the bundle in the kernel:
Dependances
- jQuery >= v1.4.2 : http://jquery.com/download/
- jquery-stream v1.2 : http://code.google.com/p/jquery-stream/downloads/detail?name=jquery.stream-1.2.min.js&can=2&q=
Exemples
Simple Post
Controller Code
Template Code
Streaming Informations
Controller Code
Template Code
Same then the first exemple.