Yii 2.0: yii2-hinclude

Extension to use Hinclude with Yii 2.0.
1 follower

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

Be the first person to leave a comment

Please to leave your comment.

Create extension
Downloads
No downloadable files yet