2017 © Pedro Peláez
 

yii2-extension yii2-pjax

pjax extension for Yii 2.1

image

albertborsos/yii2-pjax

pjax extension for Yii 2.1

  • Monday, April 23, 2018
  • by albertborsos
  • Repository
  • 2 Watchers
  • 2 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Latest Stable Version Total Downloads License, (*1)

Build Status, (*2)

Yii 2.0 pjax extension

Classes in this extension are copied from Yii 2.0 repository, (*3)

Installation

The preferred way to install this extension is through composer., (*4)

run, (*5)

composer require --prefer-dist albertborsos/yii2-pjax

or for Yii 3.0, (*6)

composer require albertborsos/yii2-pjax:1.0.x-dev

Usage

Use the pjax compatible request and response classes in your application's web.php configuration file:, (*7)

<?php

return [
    ...
    'components' =>[
        ...
        'request' => [
            'class' => \albertborsos\pjax\web\Request::class,
        ],
        'response' => [
            'class' => \albertborsos\pjax\web\Response::class,
        ],
        ...
    ],
    ...
];

Or

You can use your own Request and Response classes with the mandatory interfaces (\albertborsos\pjax\interfaces\RequestInterface and \albertborsos\pjax\interfaces\ResponseInterface) and with the optional traits (\albertborsos\pjax\traits\RequestTrait and \albertborsos\pjax\traits\ResponseTrait)., (*8)

Documentation

https://www.yiiframework.com/doc/api/2.0/yii-widgets-pjax, (*9)

The Versions