PHP code example of rcrowe / turbo
1. Go to this page and download the library: Download rcrowe/turbo 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/ */
rcrowe / turbo example snippets
Event::listen('turbo.pjax', function($request, $response) {
$response->header('X-App-Msg', 'Hello world');
});
Event::register('turbo.pjax', function() {
echo 'This is a pjax request';
});