tacnoman/yii2hinclude Hinclude asset for Yii2 with a widget.

Yii2Hinclude


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();

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

No stable releases.

Comments



No stable releases.



MIT license
Stats
0 github stars & 1 github forks
0 downloads in the last day
0 downloads in the last 30 days
9 total downloads