PHP code example of plesk / yii2-pjax
1. Go to this page and download the library: Download plesk/yii2-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/ */
plesk / yii2-pjax example snippets
[
'components' => [
'pjax' => [
'class' => 'plesk\yii2pjax\Component',
],
],
]
$this->registerJs(
'$("#plesk-pjax-search-form").on("pjax:success", function() {
$.pjax.reload(' . Json::encode(Yii::$app->pjax->pjaxConvertConfigWidgetToJs($gridPjaxOptions)) . ');
});'
);