定制 slince/cakephp-pjax 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

slince/cakephp-pjax

Composer 安装命令:

composer require slince/cakephp-pjax

包简介

A pjax middleware for CakePHP 3

README 文档

README

Build Status Coverage Status Latest Stable Version Scrutinizer

This plugin for version 3 the CakePHP Framework. Pjax is a jQuery plugin that leverages ajax to speed up the loading time of your pages. It works by only fetching specific html fragments from the server, and client-side updating only happens on certain parts of the page.

The package provides a middleware that can return the response that the jQuery plugin expects.

Installation

You can install the package via composer:

$ composer require slince/cakephp-pjax

Load Plugin

Add the following to your config/bootstrap.php to load the plugin.

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

Usage

The provided middleware provides the behaviour that the pjax plugin expects of the server:

Checks pjax request:

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

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 1.19k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-12-29

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固