L
L
liltrill2019-12-13 17:14:18
BEM
liltrill, 2019-12-13 17:14:18

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

2 answer(s)
M
Maxim, 2019-12-18
@liltrill

As well as not in Yii! Yii here and? This applies to Frontend, not Backend development! Use Node.js and NPM

@
@coderiter, 2019-12-13
_

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 question

Ask a Question

731 491 924 answers to any question