Download the PHP package blueweb/nette-ajax-history without Composer
On this page you can find all versions of the php package blueweb/nette-ajax-history. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download blueweb/nette-ajax-history
More information about blueweb/nette-ajax-history
Files in blueweb/nette-ajax-history
Package nette-ajax-history
Short Description Adds History API support for Nette Framework 3.
License MIT
Homepage https://github.com/blueweb/history.nette.ajax.js
Informations about the package nette-ajax-history
History Extension
Adds History API support to nette.ajax.js addon for Nette Framework!
This repo is a fork of vojtech-dobes/history.nette.ajax.js package with additional support for Nette 3.
All credits go to Vojtěch. Thank you!
Installation
- Link
client-side/history.ajax.js
afternette.ajax.js
. - Load PHP files with Composer:
blueweb/nette-ajax-history
- Register config extension in your configuration:
Usage
Write your application as normal. All redirects and forwards will be properly handled.
To correctly update UI, use snippets. If you plan to ajaxify whole application, consider adding this snippet to your beforeRender()
method in BasePresenter
.
And app/@layout.latte
might be upgraded accordingly:
Disabling
If you want specific links or forms exclude from scope of this addon (not make them update the URL), you can use data-ajax-off
feature of nette.ajax.js.
UI Caching
Extension will automatically cache your UI and restore it on Back and Forward buttons without communication with server. If you wish to call server on every Back and Forward, turn caching off.
All versions of nette-ajax-history with dependencies
nette/application Version ~3.0
nette/di Version ~3.0
nette/http Version ~3.0
nette/reflection Version ~2.0