Revision #2 has been created by yiqing95 on Sep 22, 2014, 3:49:20 AM with the memo:
wrap some code in markdown region
« previous (#1)
Changes
Title
unchanged
embedded javascript block in your view with IDE checking or intellisense
Category
unchanged
Tips
Yii version
unchanged
Tags
unchanged
registerScript, view, js
Content
changed
this is my way for embed js code block in view file:
~~~
```php
<?php \year\widgets\JsBlock::begin() ?>
<script >[...]
</script>
<?php \year\widgets\JsBlock::end()?>
~~~```
and my extension for it:[...]