How can you include a javascript menu throught the site? Give steps
Answer / Surendra Kumar Patel
1. Create a JavaScript file for your menu (e.g., `menu.js`).
2. Include this file in your layout (base.php or any other layout file) using the following code:
```
<script src="@web/js/menu.js"></script>
```
3. Modify the `menu.js` to define and initialize your menu.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the latest version of yii?
What is the purpose of “gii” in yii2?
What are the great feature of yii framework?
Can you remember what is directory structure when you downloaded yii?
Why yii is so fast?
What is the first file that gets loaded when you run a application using yii?
What is name of first file the loaded when yii 2.0 framework starts?
How can we use ajax in yii?
Benifits of yii over other frameworks?
How to get current url in yii?
What is the directory structure of yii2?
What is filter on yii framework ?