Skip to content

shqear93/yii2-embedcss

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

thanks for mitrii/yii2-embedjs

Yii2 embed Css

Embed Css with IDE checking or intellisense

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist shqear/yii2-embedcss "*"

or add

"shqear/yii2-embedcss": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

<?php \shqear\widgets\EmbedCss::begin(); ?>
<style type="text/css">
    html { background: red; }
</style>
<?php \shqear\widgets\EmbedCss::end(); ?>

Or with 'depends' option

<?php \shqear\widgets\EmbedCss::begin(['depends' => '\yii\web\JqueryAsset']); ?>
<style>
    html { background: red; }
</style>
<?php \shqear\widgets\EmbedCss::end(); ?>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages