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"
}
}
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();
No stable releases.
Comments