Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How can you include a javascript menu throught the site? Give steps



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

Post New Answer

More Yii PHP Framework Interview Questions

What are the naming convention in yii 2.0 framework?

1 Answers  


What is the first function that gets loaded from a controller?

1 Answers  


How to get current action name?

1 Answers  


How to change the existing style of yii pagination?

1 Answers  


What is the naming convention in yii framework?

1 Answers  


Explain the difference between homeurl and baseurl in yii2?

1 Answers  


What is cmodel class in yii2?

1 Answers  


What are the server requirements to install yii2?

1 Answers  


What is gii in yii 2.0 and why it is used?

1 Answers  


What is helper in yii? Why it is used?

1 Answers  


How to get current action id in yii ?

1 Answers  


What are the directory structure of yii 2.0 framework?

1 Answers  


Categories