PHP code example of slince / cakephp-pjax

1. Go to this page and download the library: Download slince/cakephp-pjax library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

slince / cakephp-pjax example snippets


Plugin::load('Slince/Pjax', [
    'bootstrap' => true,
]);

class PagesController
{
    public function index()
    {
        debug($this->request->is('pjax')); //true
    }
}