Answer the question
In order to leave comments, you need to log in
Yii2 how to use html BEM blocks?
It's hard to describe the issue. In general, there are scss BEM blocks, and I would like to store html next to them and connect them in the right place as in anguar 8, Something like an include.
PS: Did I understand correctly that in yii2 these are widgets, and I can implement each ui element as a widget?
Answer the question
In order to leave comments, you need to log in
As well as not in Yii! Yii here and? This applies to Frontend, not Backend development! Use Node.js and NPM
Xs, how it works in Angular, but in Yii everything is simple: compile scss with your editor / js collector, put the resulting css (final) into the asset file. Everything.
If necessary, you can make several basic scss files, and connect each of them as an asset on certain pages.
The BEM methodology does not imply any include connection, it is just a naming convention for blocks. If I'm wrong, correct me.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question