Answer the question
In order to leave comments, you need to log in
How to prepare layout for yii2?
Good day. The task was set to make a website that will work on yii2. It seems nothing complicated, but after reading about the framework itself, I realized that it is strongly tied to bootstrap v3.
Can I not use bootstrap styles at all and write everything myself? Is this the right approach, or do I need to use bootstarp classes and reassign styles?
To complete the picture, I will add that the layouts of each page are presented in 5 or more sizes (desktop, several laptops, horizontal tablet, vertical tablet, horizontal smartphone, vertical smartphone). Compliance of layouts with layout is very critical.
Answer the question
In order to leave comments, you need to log in
Good afternoon.
You can safely disable bootstrap and use your own styles.
To do this, you need to write your paths to your css, js, img files in the AppAsset.php file.
Place all your files in the web directory.
Well, or the second option, it's a little more complicated, create your own theme and use it instead of the standard one tied to bootstrap.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question