1

I want to apply html template into yii2 framework. I have tried this links.Link1,Link2

But I don't get the right answer.

Piyush Sapariya
  • 408
  • 3
  • 11
  • 1
    Did you read [this](http://www.yiiframework.com/doc-2.0/guide-structure-views.html#layouts)? – Yupik Oct 31 '17 at 11:35
  • Is the template completely created with independent files? You can always add html template files to views folder in yii – Shahroze Nawaz Oct 31 '17 at 11:41

1 Answers1

1

Separate your html template assets(css/js) files to

frontend/web/css

frontend/web/js

and make your css and js file included in AppAsset.php as yii2 application gives jQuery and Bootstrap assets by default so you just need not to include that in AppAsset.php finally register that Asset in main.php which is common for all and just run the application with your html template component.

Vipul L.
  • 567
  • 8
  • 19