What is PJAX? It's a jquery plugin. For more information visit the plugin page. This hook enable the use of PJAX in CodeIgniter.
Copy application/core/MY_Input.php
and application/hooks/Pjax.php
to your project.
Add below code to application/config/hooks.php
file
$hook['post_controller'][] = array(
'class' => 'Pjax',
'function' => 'initialize',
'filename' => 'Pjax.php',
'filepath' => 'hooks'
);
Enable hooks in your application/config/config.php
file, by setting $config['enable_hooks']
variable to TRUE
.
PJAX container must be an id
attribute.
Working example can be found here.
composer install
./vendor/bin/phpunit
The MIT License (MIT). Please see License File for more information.