tacnoman/yii2hinclude

Installs: 9

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 1

Language:JavaScript

dev-master 2015-07-09 02:38 UTC

This package is auto-updated.

Last update: 2024-12-13 10:32:29 UTC


README

This is a plugin to use Hinclude JS in Yii2.

Hinclude adds one element to HTML; hx:include. When the browser encounters this element, it will include the document at the end of the src attribute.

{
    "require": {
        "tacnoman/yii2hinclude": "dev-master"
    }
}

How to usage:

use \Tacnoman\Yii2Hinclude;

Yii2Hinclude::begin(['url'=>['page','id'=>3]);
    // if you are using fontawesome
    echo '<i class="fa fa-spinner fa-spin"></i>';
Yii2Hinclude::end();