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();
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.