Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/spantaleev/silex-provider-pjax
Silex provider for PJAX integration
https://github.com/spantaleev/silex-provider-pjax
Last synced: 3 months ago
JSON representation
Silex provider for PJAX integration
- Host: GitHub
- URL: https://github.com/spantaleev/silex-provider-pjax
- Owner: spantaleev
- License: bsd-3-clause
- Created: 2013-03-07T22:15:48.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-03-07T22:16:18.000Z (almost 12 years ago)
- Last Synced: 2024-04-09T22:46:25.488Z (9 months ago)
- Language: PHP
- Size: 109 KB
- Stars: 8
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- License: LICENSE.txt
Awesome Lists containing this project
README
Silex PJAX Provider
===================`PJAX `_ integration for `Silex `_ micro-framework projects.
Usage
-----Registration::
register(new \Devture\SilexProvider\PJAX\ServicesProvider());
As a result, the following Twig functions/filters are provided:
* ``is_pjax()`` - tells you if the current request is a PJAX request
* ``|strip_pjax_param`` filter - removes the cache-busting ``_pjax`` query-string parameter from a URLThis provider also registers some "after-request" event handlers to handle some edge-cases,
regarding redirect responses. To learn more, read the comments in ``ServicesProvider.php``.Note that you need to include the ``jquery.pjax.js`` file on your pages by some other means.
It's not included here.