albertborsos/yii2-pjax
最新稳定版本:0.1.0
Composer 安装命令:
composer require albertborsos/yii2-pjax
包简介
pjax extension for Yii 2.0
关键字:
README 文档
README
Yii 2.0 pjax extension
Classes in this extension are copied from Yii 2.0 repository
Installation
The preferred way to install this extension is through composer.
run
composer require --prefer-dist albertborsos/yii2-pjax
or for Yii 3.0
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:
<?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).
Documentation
统计信息
- 总下载量: 913
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-04-22