dev-master
9999999-devEmbed JS with IDE checking or intellisense.
BSD-3-Clause
The Requires
extension yii2 javascript js block embed extended
Embed JS with IDE checking or intellisense.
this is a fork package from mitrii/yii2-embedjs, (*1)
Embed JS with IDE checking or intellisense, (*2)
The preferred way to install this extension is through composer., (*3)
Either run, (*4)
php composer.phar require --prefer-dist shqear/yii2-embedjs "*"
or add, (*5)
"shqear/yii2-embedjs": "*"
to the require section of your composer.json
file., (*6)
Once the extension is installed, simply use it in your code by :, (*7)
<?php \shqear\widgets\Embedjs::begin(); ?> <script type="text/javascript"> console.log('Hello, world!'); </script> <?php \shqear\widgets\Embedjs::end(); ?>
Or with 'position' option (The default option is POS_END), (*8)
<?php \shqear\widgets\Embedjs::begin(['position' => \yii\web\View::POS_READY]); ?> <script type="text/javascript"> console.log('Hello, world!'); </script> <?php \shqear\widgets\Embedjs::end(); ?>
Embed JS with IDE checking or intellisense.
BSD-3-Clause
extension yii2 javascript js block embed extended