How install yii2-widget-sidenav


I am newbie yet :)

How do I install this extension?

I have to download the files? I have to put them in the "basic" folder?



Like described on the linked page.

Use composer. ;)

As newbie I strongly recommend to read the documentation / guides and learn important techniques first.

Of course - you should already have knowledge about PHP & jQuery.



The Yii2 Guide:

I personally think this is the minimum you should read, know and understand.

And believe it or not, I think most (if not all) of the more advanced users have done this.

Best Regards

I already have these features, but to install this widget on concrete, what should I do?

I put the indicated instruction, but before doing so, where are the files should be put? Or you do not need to download and these will be downloaded as soon as you run the command?

$ php composer.phar require kartik-v/yii2-widget-sidenav "*"

I in “cmd” already went to the “basic” folder and executed this command, but only appears the file content does not install anything … then I’m doing something wrong! What is wrong?

What is the output of your command when executing?

$ php composer.phar require kartik-v/yii2-widget-sidenav "*"

It should be downloaded and installed automatically by composer.

Alternative would be: edit composer.json in your project-root like described:

"require": { 


   "kartik-v/yii2-widget-sidenav": "*"


And execute:

myprojectRoot > composer update 

And it should be installed.

When it is installed you can use it like described.

To verify if your first install was successfull you could go to:


and see if there is a folder named:


If yes => it is probably installed correctly.


I was to go wrong because of "composer.phar". There was no in my project folder.

Thank’s ;)