Skip to content

Instantly share code, notes, and snippets.

@jepster
Created July 31, 2015 06:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jepster/9c487d3b315a4c21561b to your computer and use it in GitHub Desktop.
Save jepster/9c487d3b315a4c21561b to your computer and use it in GitHub Desktop.
<?php
// that class is usually used, if you work with html in your view.
use yii\helpers\Html;
// here comes your Yii2 asset's class!
use app\modules\YOUR-MODULE\assets\YOUR-ASSER-CLASS;
// now Yii puts your css and javascript files into your view's html.
MyModuleAsset::register($this);
?>
<p>
Some <strong>HTML</strong> my <i>friend..</i> :)
</p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment