K
K
kleilike2017-04-19 14:51:46
Yii
kleilike, 2017-04-19 14:51:46

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

2 answer(s)
D
Dmitry, 2017-04-19
@kleilike

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.

M
Mi7teR, 2017-04-19
@Mi7teR

you can use whatever you want. Bootstrap is built for the convenience of rapid prototyping.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question