yii2-hinclude Extension to use Hinclude with Yii 2.0.

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": {
        "tokenpost/yii2hinclude": "dev-master"
    }
}

How to usage:

use \TokenPost\Yii2Hinclude;

Yii2Hinclude::begin(['url'=>['page','id'=>3]]);
    // Here you can put the content while loading.. If you are using FontAwesome, you can put this.
    echo '<i class="fa fa-spinner fa-spin"></i>';
Yii2Hinclude::end();
0 0
1 follower
0 downloads
Yii Version: 2.0
License: MIT
Category: User Interface
Developed by: Tacnoman
Created on: Aug 5, 2014
Last updated: 3 years ago